Commit 8d6cda70 authored by Aaron's avatar Aaron Committed by zhangjinpeng1987

Shouldn't assume lexicographical ordering (#305)

it is possible using a customized comparator.
parent 5515f2c0
......@@ -370,7 +370,6 @@ pub struct Range<'a> {
impl<'a> Range<'a> {
pub fn new(start_key: &'a [u8], end_key: &'a [u8]) -> Range<'a> {
assert!(start_key <= end_key);
Range {
start_key: start_key,
end_key: end_key,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment