Mercurial > lbo > hg > leveldb-rs
view .hgignore @ 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 | 1d7d9201099e |
children | 62c425f76e9a |