mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove deprecated function
This commit is contained in:
parent
25559eeb92
commit
a85720f0f6
|
@ -6,8 +6,6 @@ package ydb
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ydb-platform/ydb-go-sdk/v3/table/options"
|
|
||||||
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/filer"
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
||||||
"github.com/chrislusf/seaweedfs/weed/filer/abstract_sql"
|
"github.com/chrislusf/seaweedfs/weed/filer/abstract_sql"
|
||||||
"github.com/chrislusf/seaweedfs/weed/util"
|
"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),
|
_, res, err := s.Execute(ctx, roTX, *withPragma(&store.tablePathPrefix, findQuery),
|
||||||
table.NewQueryParameters(
|
table.NewQueryParameters(
|
||||||
table.ValueParam("$dir_hash", types.Int64Value(dirHash)),
|
table.ValueParam("$dir_hash", types.Int64Value(dirHash)),
|
||||||
table.ValueParam("$name", types.UTF8Value(name))),
|
table.ValueParam("$name", types.UTF8Value(name))))
|
||||||
options.WithQueryCachePolicy(options.WithQueryCachePolicyKeepInCache()))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("kv get execute %s: %v", util.NewFullPath(dirStr, name).Name(), err)
|
return fmt.Errorf("kv get execute %s: %v", util.NewFullPath(dirStr, name).Name(), err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue