Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and cleanup treatment of keyspace IDs and KeyRange (#12524)
* Refactor and cleanup treatment of keyspace IDs and KeyRange Signed-off-by: Jeremy Cole <[email protected]> * Address internal review comments Signed-off-by: Jeremy Cole <[email protected]> * Fix apparent bug in KeyRangeContiguous when a or b are full-range Signed-off-by: Jeremy Cole <[email protected]> * Add test for bug in comparing "0003" vs "000300" Signed-off-by: Hormoz Kheradmand <[email protected]> * Remove trailing zeroes in key.Normalize instead of adding padding Signed-off-by: Jeremy Cole <[email protected]> * Address review feedback; test formatting, comments, function naming Signed-off-by: Jeremy Cole <[email protected]> * Refactor tests for TestKeyRangesIntersect Signed-off-by: Jeremy Cole <[email protected]> * Rename KeyRangesIntersect to KeyRangeIntersect for consistency Signed-off-by: Jeremy Cole <[email protected]> * Remove unused KeyRangesOverlap function Signed-off-by: Jeremy Cole <[email protected]> * Rename KeyRangeIncludes to KeyRangeContainsKeyRange, clean up and add tests Signed-off-by: Jeremy Cole <[email protected]> --------- Signed-off-by: Jeremy Cole <[email protected]> Signed-off-by: Hormoz Kheradmand <[email protected]> Co-authored-by: Hormoz Kheradmand <[email protected]>
- Loading branch information