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 0480b16 + 5b0e13e commit c15eeb4Copy full SHA for c15eeb4
pkg/sql/catalog/lease/lease.go
@@ -1119,6 +1119,11 @@ func (m *Manager) acquireNodeLease(
1119
if err != nil {
1120
return false, err
1121
}
1122
+ // Descriptor versions for these tables participate directly in memo
1123
+ // staleness checks. Bump the lease generation now so queries that
1124
+ // rely on the new privileges/options are forced to replan immediately
1125
+ // instead of waiting for the asynchronous lease update.
1126
+ m.leaseGeneration.Add(1)
1127
1128
desc, err = doAcquisition()
1129
0 commit comments