From 3ffbaaa0717b424d9899010e8e9df2b4cfb6968f Mon Sep 17 00:00:00 2001 From: chrislusf Date: Fri, 1 Oct 2021 03:16:03 +0000 Subject: [PATCH] use github.com/linxGnu/grocksdb --- go.mod | 1 + weed/filer/rocksdb/rocksdb_store.go | 2 +- weed/filer/rocksdb/rocksdb_ttl.go | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 8c7e88bd7..4f248e7eb 100644 --- a/go.mod +++ b/go.mod @@ -181,6 +181,7 @@ require ( github.com/jcmturner/goidentity/v6 v6.0.1 // indirect github.com/jcmturner/rpc/v2 v2.0.2 // indirect github.com/leodido/go-urn v1.2.0 // indirect + github.com/linxGnu/grocksdb v1.6.38 // indirect github.com/mattn/go-runewidth v0.0.7 // indirect github.com/miekg/dns v1.1.25-0.20191211073109-8ebf2e419df7 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect diff --git a/weed/filer/rocksdb/rocksdb_store.go b/weed/filer/rocksdb/rocksdb_store.go index 729da7d9b..f48c3988c 100644 --- a/weed/filer/rocksdb/rocksdb_store.go +++ b/weed/filer/rocksdb/rocksdb_store.go @@ -10,7 +10,7 @@ import ( "io" "os" - "github.com/tecbot/gorocksdb" + gorocksdb "github.com/linxGnu/grocksdb" "github.com/chrislusf/seaweedfs/weed/filer" "github.com/chrislusf/seaweedfs/weed/glog" diff --git a/weed/filer/rocksdb/rocksdb_ttl.go b/weed/filer/rocksdb/rocksdb_ttl.go index faed22310..7e9643083 100644 --- a/weed/filer/rocksdb/rocksdb_ttl.go +++ b/weed/filer/rocksdb/rocksdb_ttl.go @@ -5,7 +5,7 @@ package rocksdb import ( "time" - "github.com/tecbot/gorocksdb" + gorocksdb "github.com/linxGnu/grocksdb" "github.com/chrislusf/seaweedfs/weed/filer" ) @@ -38,3 +38,8 @@ func (t *TTLFilter) Filter(level int, key, val []byte) (remove bool, newVal []by func (t *TTLFilter) Name() string { return "TTLFilter" } +func (t *TTLFilter) SetIgnoreSnapshots(value bool) { +} + +func (t *TTLFilter) Destroy() { +}