Skip to content

Commit

Permalink
Update etcdqdb.go
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke authored Apr 2, 2024
1 parent efc1a5d commit 457abb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qdb/etcdqdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ func (q *EtcdQDB) TryCoordinatorLock(ctx context.Context) error {
}

if !stat.Succeeded {
_ = q.cli.Lease.Close()
return spqrerror.New(spqrerror.SPQR_UNEXPECTED, "qdb is already in use")
}

Expand Down

0 comments on commit 457abb1

Please sign in to comment.