BLMOVE (LEFT|RIGHT) (LEFT|RIGHT) */
| 1013 | |
| 1014 | /* BLMOVE <source> <destination> (LEFT|RIGHT) (LEFT|RIGHT) <timeout> */ |
| 1015 | void blmoveCommand(client *c) { |
| 1016 | mstime_t timeout; |
| 1017 | int wherefrom, whereto; |
| 1018 | if (getListPositionFromObjectOrReply(c,c->argv[3],&wherefrom) |
| 1019 | != C_OK) return; |
| 1020 | if (getListPositionFromObjectOrReply(c,c->argv[4],&whereto) |
| 1021 | != C_OK) return; |
| 1022 | if (getTimeoutFromObjectOrReply(c,c->argv[5],&timeout,UNIT_SECONDS) |
| 1023 | != C_OK) return; |
| 1024 | blmoveGenericCommand(c,wherefrom,whereto,timeout); |
| 1025 | } |
| 1026 | |
| 1027 | /* BRPOPLPUSH <source> <destination> <timeout> */ |
| 1028 | void brpoplpushCommand(client *c) { |
nothing calls this directly
no test coverage detected