We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e9cc9 commit 72c56e7Copy full SHA for 72c56e7
txnkv/txn.go
@@ -204,6 +204,9 @@ func (txn *Transaction) Commit(ctx context.Context) error {
204
if c := txn.us.LookupConditionPair(k); c != nil && c.ShouldNotExist() {
205
op = kvrpcpb.Op_Insert
206
}
207
+ if len(v) == 0 {
208
+ op = kvrpcpb.Op_Del
209
+ }
210
mutations[string(k)] = &kvrpcpb.Mutation{
211
Op: op,
212
Key: k,
0 commit comments