Vendor update goleveldb

There are number of changes which went in recently which should improve
performance: https://github.com/syndtr/goleveldb/issues/226#issuecomment-477568827
This commit is contained in:
Andrey Smirnov
2019-09-18 00:24:34 +03:00
committed by Oliver Sauder
parent c75ef8546e
commit bb66b2296d
27 changed files with 681 additions and 194 deletions
+4 -1
View File
@@ -147,7 +147,10 @@ func packFile(fd storage.FileDesc) uint64 {
}
func unpackFile(x uint64) storage.FileDesc {
return storage.FileDesc{storage.FileType(x) & storage.TypeAll, int64(x >> typeCount)}
return storage.FileDesc{
Type: storage.FileType(x) & storage.TypeAll,
Num: int64(x >> typeCount),
}
}
type emulatedError struct {