Skip to content

Commit

Permalink
Merge pull request #139843 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.2-138800

release-24.2: lease: unredact lease struct
  • Loading branch information
aa-joshi authored Jan 31, 2025
2 parents bf31afd + 264ed2d commit 66dd9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sql/catalog/lease/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ SELECT COALESCE(l."descID", s."desc_id") as "descID", COALESCE(l.version, s.vers
// Early exit?
row := rows[i]
wg.Add(1)
lease := storedLease{
lease := &storedLease{
id: descpb.ID(tree.MustBeDInt(row[0])),
version: int(tree.MustBeDInt(row[1])),
}
Expand Down Expand Up @@ -1903,7 +1903,7 @@ SELECT COALESCE(l."descID", s."desc_id") as "descID", COALESCE(l.version, s.vers
WaitForSem: true,
},
func(ctx context.Context) {
m.storage.release(ctx, m.stopper, &lease)
m.storage.release(ctx, m.stopper, lease)
log.Infof(ctx, "released orphaned lease: %+v", lease)
wg.Done()
}); err != nil {
Expand Down

0 comments on commit 66dd9be

Please sign in to comment.