Lines Matching refs:o
71 void xorObjectDigest(unsigned char *digest, robj *o) { in xorObjectDigest() argument
72 o = getDecodedObject(o); in xorObjectDigest()
73 xorDigest(digest,o->ptr,sdslen(o->ptr)); in xorObjectDigest()
74 decrRefCount(o); in xorObjectDigest()
101 void mixObjectDigest(unsigned char *digest, robj *o) { in mixObjectDigest() argument
102 o = getDecodedObject(o); in mixObjectDigest()
103 mixDigest(digest,o->ptr,sdslen(o->ptr)); in mixObjectDigest()
104 decrRefCount(o); in mixObjectDigest()
137 robj *keyobj, *o; in computeDatasetDigest() local
146 o = dictGetVal(de); in computeDatasetDigest()
148 aux = htonl(o->type); in computeDatasetDigest()
153 if (o->type == OBJ_STRING) { in computeDatasetDigest()
154 mixObjectDigest(digest,o); in computeDatasetDigest()
155 } else if (o->type == OBJ_LIST) { in computeDatasetDigest()
156 listTypeIterator *li = listTypeInitIterator(o,0,LIST_TAIL); in computeDatasetDigest()
164 } else if (o->type == OBJ_SET) { in computeDatasetDigest()
165 setTypeIterator *si = setTypeInitIterator(o); in computeDatasetDigest()
172 } else if (o->type == OBJ_ZSET) { in computeDatasetDigest()
175 if (o->encoding == OBJ_ENCODING_ZIPLIST) { in computeDatasetDigest()
176 unsigned char *zl = o->ptr; in computeDatasetDigest()
205 } else if (o->encoding == OBJ_ENCODING_SKIPLIST) { in computeDatasetDigest()
206 zset *zs = o->ptr; in computeDatasetDigest()
224 } else if (o->type == OBJ_HASH) { in computeDatasetDigest()
228 hi = hashTypeInitIterator(o); in computeDatasetDigest()
592 void serverLogObjectDebugInfo(robj *o) { in serverLogObjectDebugInfo() argument
593 serverLog(LL_WARNING,"Object type: %d", o->type); in serverLogObjectDebugInfo()
594 serverLog(LL_WARNING,"Object encoding: %d", o->encoding); in serverLogObjectDebugInfo()
595 serverLog(LL_WARNING,"Object refcount: %d", o->refcount); in serverLogObjectDebugInfo()
596 if (o->type == OBJ_STRING && sdsEncodedObject(o)) { in serverLogObjectDebugInfo()
597 serverLog(LL_WARNING,"Object raw string len: %zu", sdslen(o->ptr)); in serverLogObjectDebugInfo()
598 if (sdslen(o->ptr) < 4096) { in serverLogObjectDebugInfo()
599 sds repr = sdscatrepr(sdsempty(),o->ptr,sdslen(o->ptr)); in serverLogObjectDebugInfo()
603 } else if (o->type == OBJ_LIST) { in serverLogObjectDebugInfo()
604 serverLog(LL_WARNING,"List length: %d", (int) listTypeLength(o)); in serverLogObjectDebugInfo()
605 } else if (o->type == OBJ_SET) { in serverLogObjectDebugInfo()
606 serverLog(LL_WARNING,"Set size: %d", (int) setTypeSize(o)); in serverLogObjectDebugInfo()
607 } else if (o->type == OBJ_HASH) { in serverLogObjectDebugInfo()
608 serverLog(LL_WARNING,"Hash size: %d", (int) hashTypeLength(o)); in serverLogObjectDebugInfo()
609 } else if (o->type == OBJ_ZSET) { in serverLogObjectDebugInfo()
610 serverLog(LL_WARNING,"Sorted set size: %d", (int) zsetLength(o)); in serverLogObjectDebugInfo()
611 if (o->encoding == OBJ_ENCODING_SKIPLIST) in serverLogObjectDebugInfo()
612 serverLog(LL_WARNING,"Skiplist level: %d", (int) ((zset*)o->ptr)->zsl->level); in serverLogObjectDebugInfo()
616 void _serverAssertPrintObject(robj *o) { in _serverAssertPrintObject() argument
619 serverLogObjectDebugInfo(o); in _serverAssertPrintObject()
622 void _serverAssertWithInfo(client *c, robj *o, char *estr, char *file, int line) { in _serverAssertWithInfo() argument
624 if (o) _serverAssertPrintObject(o); in _serverAssertWithInfo()