mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
vendor: revert leveldb modifications
This commit is contained in:
parent
61920f6600
commit
8978fcb4ac
1 changed files with 0 additions and 13 deletions
13
vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go
generated
vendored
13
vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go
generated
vendored
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue