@@ -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
}
@@ -313,8 +313,8 @@ func countSessionsHoldingStaleDescriptor(
313
313
func (m * Manager ) WaitForInitialVersion (
314
314
ctx context.Context ,
315
315
descriptorsIds descpb.IDs ,
316
- retryOpts retry.Options ,
317
316
regions regionliveness.CachedDatabaseRegions ,
317
+ retryOpts retry.Options ,
318
318
) error {
319
319
if ! WaitForInitialVersion .Get (& m .settings .SV ) ||
320
320
! m .storage .settings .Version .IsActive (ctx , clusterversion .V25_1 ) {
@@ -557,7 +557,7 @@ func (m *Manager) WaitForOneVersion(
557
557
// The MaxRetries and MaxDuration in retryOpts should not be set.
558
558
func (m * Manager ) WaitForNewVersion (
559
559
ctx context.Context ,
560
- descriptorId descpb.ID ,
560
+ id descpb.ID ,
561
561
regions regionliveness.CachedDatabaseRegions ,
562
562
retryOpts retry.Options ,
563
563
) (catalog.Descriptor , error ) {
@@ -577,7 +577,7 @@ func (m *Manager) WaitForNewVersion(
577
577
// enjoyers).
578
578
for r := retry .Start (retryOpts ); r .Next (); {
579
579
var err error
580
- desc , err = m .maybeGetDescriptorWithoutValidation (ctx , descriptorId , true )
580
+ desc , err = m .maybeGetDescriptorWithoutValidation (ctx , id , true )
581
581
if err != nil {
582
582
return nil , err
583
583
}
0 commit comments