We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a14fbe9 + eaac235 commit e92a6a8Copy full SHA for e92a6a8
pkg/sql/catalog/lease/lease.go
@@ -1282,6 +1282,11 @@ func (m *Manager) acquireNodeLease(
1282
if err := m.upsertDescriptorIntoState(ctx, id, session, desc); err != nil {
1283
return false, err
1284
}
1285
+ // Descriptor versions for these tables participate directly in memo
1286
+ // staleness checks. Bump the lease generation now so queries that
1287
+ // rely on the new privileges/options are forced to replan immediately
1288
+ // instead of waiting for the asynchronous lease update.
1289
+ m.leaseGeneration.Add(1)
1290
1291
desc, err = doAcquisition()
1292
if err != nil {
0 commit comments