MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zrangeResultFinalizeClient

Function zrangeResultFinalizeClient

app/redis-6.2.6/src/t_zset.c:2934–2945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setDeferredArrayLenFunction · 0.85

Tested by

no test coverage detected