@@ -107,7 +107,7 @@ var WaitForInitialVersion = settings.RegisterBoolSetting(settings.ApplicationLev
107
107
func (m * Manager ) WaitForNoVersion (
108
108
ctx context.Context ,
109
109
id descpb.ID ,
110
- cachedDatabaseRegions regionliveness.CachedDatabaseRegions ,
110
+ regions regionliveness.CachedDatabaseRegions ,
111
111
retryOpts retry.Options ,
112
112
) error {
113
113
versions := []IDVersion {
@@ -125,7 +125,7 @@ func (m *Manager) WaitForNoVersion(
125
125
defer wsTracker .end ()
126
126
for lastCount , r := 0 , retry .Start (retryOpts ); r .Next (); {
127
127
now := m .storage .clock .Now ()
128
- detail , err := countLeasesWithDetail (ctx , m .storage .db , m .Codec (), cachedDatabaseRegions , m .settings , versions , now , true /*forAnyVersion*/ )
128
+ detail , err := countLeasesWithDetail (ctx , m .storage .db , m .Codec (), regions , m .settings , versions , now , true /*forAnyVersion*/ )
129
129
if err != nil {
130
130
return err
131
131
}
@@ -317,8 +317,8 @@ func countSessionsHoldingStaleDescriptor(
317
317
func (m * Manager ) WaitForInitialVersion (
318
318
ctx context.Context ,
319
319
descriptorsIds descpb.IDs ,
320
- retryOpts retry.Options ,
321
320
regions regionliveness.CachedDatabaseRegions ,
321
+ retryOpts retry.Options ,
322
322
) error {
323
323
if ! WaitForInitialVersion .Get (& m .settings .SV ) ||
324
324
! m .storage .settings .Version .IsActive (ctx , clusterversion .V25_1 ) {
@@ -561,7 +561,7 @@ func (m *Manager) WaitForOneVersion(
561
561
// The MaxRetries and MaxDuration in retryOpts should not be set.
562
562
func (m * Manager ) WaitForNewVersion (
563
563
ctx context.Context ,
564
- descriptorId descpb.ID ,
564
+ id descpb.ID ,
565
565
regions regionliveness.CachedDatabaseRegions ,
566
566
retryOpts retry.Options ,
567
567
) (catalog.Descriptor , error ) {
@@ -581,7 +581,7 @@ func (m *Manager) WaitForNewVersion(
581
581
// enjoyers).
582
582
for r := retry .Start (retryOpts ); r .Next (); {
583
583
var err error
584
- desc , err = m .maybeGetDescriptorWithoutValidation (ctx , descriptorId , true )
584
+ desc , err = m .maybeGetDescriptorWithoutValidation (ctx , id , true )
585
585
if err != nil {
586
586
return nil , err
587
587
}
0 commit comments