vendor: update leveldb

This commit is contained in:
Martin Holst Swende
2018-11-28 20:53:02 +01:00
parent 695a5cce1e
commit 8380a1303c
11 changed files with 76 additions and 68 deletions

View File

@ -29,7 +29,7 @@ func (bytesComparer) Separator(dst, a, b []byte) []byte {
// Do not shorten if one string is a prefix of the other
} else if c := a[i]; c < 0xff && c+1 < b[i] {
dst = append(dst, a[:i+1]...)
dst[i]++
dst[len(dst)-1]++
return dst
}
return nil
@ -39,7 +39,7 @@ func (bytesComparer) Successor(dst, b []byte) []byte {
for i, c := range b {
if c != 0xff {
dst = append(dst, b[:i+1]...)
dst[i]++
dst[len(dst)-1]++
return dst
}
}

View File

@ -36,7 +36,7 @@ type Comparer interface {
// by any users of this package.
Name() string
// Bellow are advanced functions used used to reduce the space requirements
// Bellow are advanced functions used to reduce the space requirements
// for internal data structures such as index blocks.
// Separator appends a sequence of bytes x to dst such that a <= x && x < b,