From a85720f0f679ab670ae1f6fb6041e4a56c691642 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 10 May 2022 00:02:23 -0700 Subject: [PATCH] remove deprecated function --- weed/filer/ydb/ydb_store_kv.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/weed/filer/ydb/ydb_store_kv.go b/weed/filer/ydb/ydb_store_kv.go index 248d639a9..61c3a273c 100644 --- a/weed/filer/ydb/ydb_store_kv.go +++ b/weed/filer/ydb/ydb_store_kv.go @@ -6,8 +6,6 @@ package ydb import ( "context" "fmt" - "github.com/ydb-platform/ydb-go-sdk/v3/table/options" - "github.com/chrislusf/seaweedfs/weed/filer" "github.com/chrislusf/seaweedfs/weed/filer/abstract_sql" "github.com/chrislusf/seaweedfs/weed/util" @@ -36,8 +34,7 @@ func (store *YdbStore) KvGet(ctx context.Context, key []byte) (value []byte, err _, res, err := s.Execute(ctx, roTX, *withPragma(&store.tablePathPrefix, findQuery), table.NewQueryParameters( table.ValueParam("$dir_hash", types.Int64Value(dirHash)), - table.ValueParam("$name", types.UTF8Value(name))), - options.WithQueryCachePolicy(options.WithQueryCachePolicyKeepInCache())) + table.ValueParam("$name", types.UTF8Value(name)))) if err != nil { return fmt.Errorf("kv get execute %s: %v", util.NewFullPath(dirStr, name).Name(), err) }