| 405 | } |
| 406 | |
| 407 | void getdelCommand(client *c) { |
| 408 | if (getGenericCommand(c) == C_ERR) return; |
| 409 | int deleted = g_pserver->lazyfree_lazy_user_del ? dbAsyncDelete(c->db, c->argv[1]) : |
| 410 | dbSyncDelete(c->db, c->argv[1]); |
| 411 | if (deleted) { |
| 412 | /* Propagate as DEL/UNLINK command */ |
| 413 | robj *aux = g_pserver->lazyfree_lazy_user_del ? shared.unlink : shared.del; |
| 414 | rewriteClientCommandVector(c,2,aux,c->argv[1]); |
| 415 | signalModifiedKey(c, c->db, c->argv[1]); |
| 416 | notifyKeyspaceEvent(NOTIFY_GENERIC, "del", c->argv[1], c->db->id); |
| 417 | g_pserver->dirty++; |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | void getsetCommand(client *c) { |
| 422 | if (getGenericCommand(c) == C_ERR) return; |
nothing calls this directly
no test coverage detected