Skip to content
Snippets Groups Projects
Commit 2fbdc5ca authored by Roman Tokarev's avatar Roman Tokarev
Browse files

Copy DELETE to DELETE_OLD and add `flags' argument to the DELETE command.

parent c75248aa
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,8 @@ enum box_mode {
_(SELECT_LIMIT, 15) \
_(SELECT, 17) \
_(UPDATE_FIELDS, 19) \
_(DELETE, 20)
_(DELETE_OLD, 20) \
_(DELETE, 21)
ENUM(messages, MESSAGES);
......
......@@ -771,7 +771,7 @@ txn_commit(struct box_txn *txn)
unlock_tuples(txn);
if (txn->op == DELETE)
if (txn->op == DELETE_OLD || txn->op == DELETE)
commit_delete(txn);
else
commit_replace(txn);
......@@ -821,6 +821,8 @@ box_dispatch(struct box_txn *txn, struct tbuf *data)
break;
case DELETE:
txn->flags |= read_u32(data) & BOX_ALLOWED_REQUEST_FLAGS;
case DELETE_OLD:
key_len = read_u32(data);
if (key_len != 1)
tnt_raise(IllegalParams, :"key must be single valued");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment