Skip to content

Commit 2f87743

Browse files
author
Jason Boatman
committed
Fix bug in KeyLocation::contains which would cause an infinite loop on
any batch operation which spanned multiple regions. Signed-off-by: Jason Boatman <[email protected]>
1 parent acfa500 commit 2f87743

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/rpc/client.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -537,13 +537,6 @@ impl KeyLocation {
537537
KeyLocation(region)
538538
}
539539

540-
fn contains(&self, key: &Key) -> bool {
541-
let start = self.start_key();
542-
let end = self.end_key();
543-
let key: &[u8] = key.as_ref();
544-
start <= key && (end < key || end.is_empty())
545-
}
546-
547540
fn into_inner(self) -> Region {
548541
self.0
549542
}

0 commit comments

Comments
 (0)