Browse Source
fix(filer): add missing return after KvDelete in KvPut with empty value (#6846)
pull/6224/merge
SmoothDenis
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
weed/server/filer_grpc_server_kv.go
|
|
@ -30,6 +30,7 @@ func (fs *FilerServer) KvPut(ctx context.Context, req *filer_pb.KvPutRequest) (* |
|
|
|
if err := fs.filer.Store.KvDelete(ctx, req.Key); err != nil { |
|
|
|
return &filer_pb.KvPutResponse{Error: err.Error()}, nil |
|
|
|
} |
|
|
|
return &filer_pb.KvPutResponse{}, nil |
|
|
|
} |
|
|
|
|
|
|
|
err := fs.filer.Store.KvPut(ctx, req.Key, req.Value) |
|
|
|