@@ -137,11 +137,11 @@ type TenantRepository interface {
137137 GetInternalTenantForController (ctx context.Context , controllerPartitionId string ) (* sqlcv1.Tenant , error )
138138
139139 // ListTenantsByPartition lists all tenants in the given partition
140- ListTenantsByControllerPartition (ctx context.Context , controllerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error )
140+ ListTenantsByControllerPartition (ctx context.Context , controllerPartitionId string ) ([]* sqlcv1.Tenant , error )
141141
142- ListTenantsByWorkerPartition (ctx context.Context , workerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error )
142+ ListTenantsByWorkerPartition (ctx context.Context , workerPartitionId string ) ([]* sqlcv1.Tenant , error )
143143
144- ListTenantsBySchedulerPartition (ctx context.Context , schedulerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error )
144+ ListTenantsBySchedulerPartition (ctx context.Context , schedulerPartitionId string ) ([]* sqlcv1.Tenant , error )
145145
146146 // CreateEnginePartition creates a new partition for tenants within the engine
147147 CreateControllerPartition (ctx context.Context ) (string , error )
@@ -743,26 +743,20 @@ func (r *tenantRepository) GetInternalTenantForController(ctx context.Context, c
743743 return tenant , nil
744744}
745745
746- func (r * tenantRepository ) ListTenantsByControllerPartition (ctx context.Context , controllerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error ) {
746+ func (r * tenantRepository ) ListTenantsByControllerPartition (ctx context.Context , controllerPartitionId string ) ([]* sqlcv1.Tenant , error ) {
747747 if controllerPartitionId == "" {
748748 return nil , fmt .Errorf ("partitionId is required" )
749749 }
750750
751- return r .queries .ListTenantsByControllerPartitionId (ctx , r .pool , sqlcv1.ListTenantsByControllerPartitionIdParams {
752- ControllerPartitionId : controllerPartitionId ,
753- Majorversion : majorVersion ,
754- })
751+ return r .queries .ListTenantsByControllerPartitionId (ctx , r .pool , controllerPartitionId )
755752}
756753
757- func (r * tenantRepository ) ListTenantsByWorkerPartition (ctx context.Context , workerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error ) {
754+ func (r * tenantRepository ) ListTenantsByWorkerPartition (ctx context.Context , workerPartitionId string ) ([]* sqlcv1.Tenant , error ) {
758755 if workerPartitionId == "" {
759756 return nil , fmt .Errorf ("partitionId is required" )
760757 }
761758
762- return r .queries .ListTenantsByTenantWorkerPartitionId (ctx , r .pool , sqlcv1.ListTenantsByTenantWorkerPartitionIdParams {
763- WorkerPartitionId : workerPartitionId ,
764- Majorversion : majorVersion ,
765- })
759+ return r .queries .ListTenantsByTenantWorkerPartitionId (ctx , r .pool , workerPartitionId )
766760}
767761
768762func (r * tenantRepository ) CreateControllerPartition (ctx context.Context ) (string , error ) {
@@ -850,15 +844,12 @@ func (r *tenantRepository) UpdateSchedulerPartitionHeartbeat(ctx context.Context
850844 return partition .ID , nil
851845}
852846
853- func (r * tenantRepository ) ListTenantsBySchedulerPartition (ctx context.Context , schedulerPartitionId string , majorVersion sqlcv1. TenantMajorEngineVersion ) ([]* sqlcv1.Tenant , error ) {
847+ func (r * tenantRepository ) ListTenantsBySchedulerPartition (ctx context.Context , schedulerPartitionId string ) ([]* sqlcv1.Tenant , error ) {
854848 if schedulerPartitionId == "" {
855849 return nil , fmt .Errorf ("partitionId is required" )
856850 }
857851
858- return r .queries .ListTenantsBySchedulerPartitionId (ctx , r .pool , sqlcv1.ListTenantsBySchedulerPartitionIdParams {
859- SchedulerPartitionId : schedulerPartitionId ,
860- Majorversion : majorVersion ,
861- })
852+ return r .queries .ListTenantsBySchedulerPartitionId (ctx , r .pool , schedulerPartitionId )
862853}
863854
864855func (r * tenantRepository ) CreateSchedulerPartition (ctx context.Context ) (string , error ) {
0 commit comments