| 397 | } |
| 398 | |
| 399 | void getdelCommand(client *c) { |
| 400 | if (getGenericCommand(c) == C_ERR) return; |
| 401 | int deleted = server.lazyfree_lazy_user_del ? dbAsyncDelete(c->db, c->argv[1]) : |
| 402 | dbSyncDelete(c->db, c->argv[1]); |
| 403 | if (deleted) { |
| 404 | /* Propagate as DEL/UNLINK command */ |
| 405 | robj *aux = server.lazyfree_lazy_user_del ? shared.unlink : shared.del; |
| 406 | rewriteClientCommandVector(c,2,aux,c->argv[1]); |
| 407 | signalModifiedKey(c, c->db, c->argv[1]); |
| 408 | notifyKeyspaceEvent(NOTIFY_GENERIC, "del", c->argv[1], c->db->id); |
| 409 | server.dirty++; |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | void getsetCommand(client *c) { |
| 414 | if (getGenericCommand(c) == C_ERR) return; |
nothing calls this directly
no test coverage detected