MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zrangeResultEmitCBufferForStore

Function zrangeResultEmitCBufferForStore

src/t_zset.cpp:2952–2961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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