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

Function zrangeResultEmitLongLongForStore

src/t_zset.cpp:2963–2972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2961}
2962
2963static void zrangeResultEmitLongLongForStore(zrange_result_handler *handler,
2964 long long value, double score)
2965{
2966 double newscore;
2967 int retflags = 0;
2968 sds ele = sdsfromlonglong(value);
2969 int retval = zsetAdd(handler->dstobj, score, ele, ZADD_IN_NONE, &retflags, &newscore);
2970 sdsfree(ele);
2971 serverAssert(retval);
2972}
2973
2974static void zrangeResultFinalizeStore(zrange_result_handler *handler, size_t result_count)
2975{

Callers

nothing calls this directly

Calls 3

sdsfromlonglongFunction · 0.85
zsetAddFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected