aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/syndtr/goleveldb/leveldb/opt
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-11-29 18:07:10 +0800
committerGitHub <noreply@github.com>2018-11-29 18:07:10 +0800
commit01371469e60ead5c442cefb71351583aabb1fc82 (patch)
tree9d30eb3fde14505c767417f94ad05a7bf3da5e34 /vendor/github.com/syndtr/goleveldb/leveldb/opt
parent32d35c9c088463efac49aeb0f3e6d48cfb373a40 (diff)
parent8380a1303ce6a2fa4760a8641e47e7196a941b4c (diff)
downloadgo-tangerine-01371469e60ead5c442cefb71351583aabb1fc82.tar.gz
go-tangerine-01371469e60ead5c442cefb71351583aabb1fc82.tar.zst
go-tangerine-01371469e60ead5c442cefb71351583aabb1fc82.zip
vendor: update leveldb (#18205)
Diffstat (limited to 'vendor/github.com/syndtr/goleveldb/leveldb/opt')
-rw-r--r--vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go b/vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go
index 44e7d9adc..528b16423 100644
--- a/vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go
+++ b/vendor/github.com/syndtr/goleveldb/leveldb/opt/options.go
@@ -158,6 +158,12 @@ type Options struct {
// The default value is 8MiB.
BlockCacheCapacity int
+ // BlockCacheEvictRemoved allows enable forced-eviction on cached block belonging
+ // to removed 'sorted table'.
+ //
+ // The default if false.
+ BlockCacheEvictRemoved bool
+
// BlockRestartInterval is the number of keys between restart points for
// delta encoding of keys.
//
@@ -384,6 +390,13 @@ func (o *Options) GetBlockCacheCapacity() int {
return o.BlockCacheCapacity
}
+func (o *Options) GetBlockCacheEvictRemoved() bool {
+ if o == nil {
+ return false
+ }
+ return o.BlockCacheEvictRemoved
+}
+
func (o *Options) GetBlockRestartInterval() int {
if o == nil || o.BlockRestartInterval <= 0 {
return DefaultBlockRestartInterval