| 430 | } |
| 431 | |
| 432 | void watchCommand(client *c) { |
| 433 | int j; |
| 434 | |
| 435 | if (c->flags & CLIENT_MULTI) { |
| 436 | addReplyError(c,"WATCH inside MULTI is not allowed"); |
| 437 | return; |
| 438 | } |
| 439 | for (j = 1; j < c->argc; j++) |
| 440 | watchForKey(c,c->argv[j]); |
| 441 | addReply(c,shared.ok); |
| 442 | } |
| 443 | |
| 444 | void unwatchCommand(client *c) { |
| 445 | unwatchAllKeys(c); |
nothing calls this directly
no test coverage detected