vendor: revert leveldb modifications

This commit is contained in:
rjl493456442 2017-12-13 14:33:37 +08:00
parent 61920f6600
commit 8978fcb4ac

View file

@ -41,7 +41,6 @@ var (
DefaultWriteBuffer = 4 * MiB
DefaultWriteL0PauseTrigger = 12
DefaultWriteL0SlowdownTrigger = 8
DefaultSuspendedWriteStatSize = 100
)
// Cacher is a caching algorithm.
@ -358,11 +357,6 @@ type Options struct {
//
// The default value is 8.
WriteL0SlowdownTrigger int
// SuspendedWriteStatSize defines the upper limit of the cached suspended write operation statistics.
//
// The default value is 100.
SuspendedWriteStatSize int
}
func (o *Options) GetAltFilters() []filter.Filter {
@ -615,13 +609,6 @@ func (o *Options) GetWriteL0SlowdownTrigger() int {
return o.WriteL0SlowdownTrigger
}
func (o *Options) GetSuspendedWriteStatSize() int {
if o == nil || o.SuspendedWriteStatSize == 0 {
return DefaultSuspendedWriteStatSize
}
return o.SuspendedWriteStatSize
}
// ReadOptions holds the optional parameters for 'read operation'. The
// 'read operation' includes Get, Find and NewIterator.
type ReadOptions struct {