Skip to content

Commit

Permalink
roachpb: panic when comparing a Lease to a non-lease
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
andreimatei committed Jul 24, 2020
1 parent ae8e630 commit 0517fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/roachpb/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,7 @@ func (l *Lease) Equal(that interface{}) bool {
if ok {
that1 = &that2
} else {
return false
panic(fmt.Sprintf("attempting to compare lease to %T", that))
}
}
if that1 == nil {
Expand Down

0 comments on commit 0517fde

Please sign in to comment.