| 2931 | } |
| 2932 | |
| 2933 | static void zrangeResultFinalizeClient(zrange_result_handler *handler, |
| 2934 | size_t result_count) |
| 2935 | { |
| 2936 | /* In case of WITHSCORES, respond with a single array in RESP2, and |
| 2937 | * nested arrays in RESP3. We can't use a map response type since the |
| 2938 | * client library needs to know to respect the order. */ |
| 2939 | if (handler->withscores && (handler->client->resp == 2)) { |
| 2940 | result_count *= 2; |
| 2941 | } |
| 2942 | |
| 2943 | setDeferredArrayLen(handler->client, handler->userdata, result_count); |
| 2944 | } |
| 2945 | |
| 2946 | /* Result handler methods for storing the ZRANGESTORE to a zset. */ |
| 2947 | static void zrangeResultBeginStore(zrange_result_handler *handler) |
nothing calls this directly
no test coverage detected