Browse Source

filer: etcd store avoid read with nil option

fix https://github.com/chrislusf/seaweedfs/issues/1463
pull/1475/head
Chris Lu 4 years ago
parent
commit
2a0925590c
  1. 2
      weed/filer/etcd/etcd_store_kv.go

2
weed/filer/etcd/etcd_store_kv.go

@ -19,7 +19,7 @@ func (store *EtcdStore) KvPut(ctx context.Context, key []byte, value []byte) (er
func (store *EtcdStore) KvGet(ctx context.Context, key []byte) (value []byte, err error) { func (store *EtcdStore) KvGet(ctx context.Context, key []byte) (value []byte, err error) {
resp, err := store.client.Get(ctx, string(key), nil)
resp, err := store.client.Get(ctx, string(key))
if err != nil { if err != nil {
return nil, fmt.Errorf("kv get: %v", err) return nil, fmt.Errorf("kv get: %v", err)

Loading…
Cancel
Save