Skip to content

Commit c15eeb4

Browse files
authored
Merge pull request #160086 from spilchen/blathers/backport-release-25.4-159354
release-25.4: lease: bump lease generation synchronously for system privilege tables
2 parents 0480b16 + 5b0e13e commit c15eeb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/sql/catalog/lease/lease.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,11 @@ func (m *Manager) acquireNodeLease(
11191119
if err != nil {
11201120
return false, err
11211121
}
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)
11221127

11231128
desc, err = doAcquisition()
11241129
if err != nil {

0 commit comments

Comments
 (0)