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

Function zrangeResultEmitCBufferForStore

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

Source from the content-addressed store, hash-verified

2951}
2952
2953static void zrangeResultEmitCBufferForStore(zrange_result_handler *handler,
2954 const void *value, size_t value_length_in_bytes, double score)
2955{
2956 double newscore;
2957 int retflags = 0;
2958 sds ele = sdsnewlen(value, value_length_in_bytes);
2959 int retval = zsetAdd(handler->dstobj, score, ele, ZADD_IN_NONE, &retflags, &newscore);
2960 sdsfree(ele);
2961 serverAssert(retval);
2962}
2963
2964static void zrangeResultEmitLongLongForStore(zrange_result_handler *handler,
2965 long long value, double score)

Callers

nothing calls this directly

Calls 3

sdsnewlenFunction · 0.85
zsetAddFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected