Skip to content

Commit

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

release-24.3: lease: unredact lease struct
  • Loading branch information
aa-joshi authored Jan 31, 2025
2 parents d0be0aa + 75082b8 commit edb8366
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 @@ -1882,7 +1882,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 @@ -1911,7 +1911,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 edb8366

Please sign in to comment.