Mercurial > lbo > hg > leveldb-rs
view Cargo.toml @ 150:01e070c97ee7
Fix bug in default comparator: Return correct separator for difficult cases
This is important if TableBuilder wants a separator between K and succ(K), where succ(K) is usually
just a string of K's first characters plus 1. In this case we now return K with its last byte incremented
by one, which isn't really "short" anymore, but a valid separator.
Otherwise, logic relying on the key in index blocks being actually *past* the referenced block fails in
some cases, for example on the last block of a table.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 29 Jan 2017 16:13:36 +0100 |
parents | a60c595dcb4e |
children | 200eddf9b38d |
line wrap: on
line source
[package] name = "leveldb_rs" version = "0.1.0" authors = ["Lewin Bormann <lbo@spheniscida.de>"] publish = false [dependencies] crc = "1.2" integer-encoding = "1.0" libc = "0.2" rand = "0.3"