| 3743 | } |
| 3744 | |
| 3745 | void zmscoreCommand(client *c) { |
| 3746 | robj *key = c->argv[1]; |
| 3747 | double score; |
| 3748 | robj_roptr zobj = lookupKeyRead(c->db,key); |
| 3749 | if (checkType(c,zobj,OBJ_ZSET)) return; |
| 3750 | |
| 3751 | addReplyArrayLen(c,c->argc - 2); |
| 3752 | for (int j = 2; j < c->argc; j++) { |
| 3753 | /* Treat a missing set the same way as an empty set */ |
| 3754 | if (zobj == nullptr || zsetScore(zobj,(sds)ptrFromObj(c->argv[j]),&score) == C_ERR) { |
| 3755 | addReplyNull(c); |
| 3756 | } else { |
| 3757 | addReplyDouble(c,score); |
| 3758 | } |
| 3759 | } |
| 3760 | } |
| 3761 | |
| 3762 | void zrankGenericCommand(client *c, int reverse) { |
| 3763 | robj *key = c->argv[1]; |
nothing calls this directly
no test coverage detected