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

Function createZsetObject

app/redis-6.2.6/src/object.c:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264robj *createZsetObject(void) {
265 zset *zs = zmalloc(sizeof(*zs));
266 robj *o;
267
268 zs->dict = dictCreate(&zsetDictType,NULL);
269 zs->zsl = zslCreate();
270 o = createObject(OBJ_ZSET,zs);
271 o->encoding = OBJ_ENCODING_SKIPLIST;
272 return o;
273}
274
275robj *createZsetZiplistObject(void) {
276 unsigned char *zl = ziplistNew();

Callers 5

georadiusGenericFunction · 0.85
rdbLoadObjectFunction · 0.85
zsetDupFunction · 0.85
zaddGenericCommandFunction · 0.85

Calls 4

zmallocFunction · 0.85
zslCreateFunction · 0.85
createObjectFunction · 0.85
dictCreateFunction · 0.70

Tested by

no test coverage detected