Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 11 of 11) sorted by relevance

/redis-3.2.3/tests/unit/
H A Dmaxmemory.tcl5 assert {[r object refcount a] > 1}
12 assert {[r object refcount a] > 1}
21 assert {[r object refcount a] == 1}
22 assert {[r object refcount b] == 1}
/redis-3.2.3/src/
H A Dobject.c44 o->refcount = 1; in createObject()
67 o->refcount = 1; in createEmbeddedStringObject()
298 o->refcount++; in incrRefCount()
302 if (o->refcount <= 0) serverPanic("decrRefCount against refcount <= 0"); in decrRefCount()
303 if (o->refcount == 1) { in decrRefCount()
314 o->refcount--; in decrRefCount()
338 obj->refcount = 0; in resetRefCount()
380 if (o->refcount > 1) return o; in tryObjectEncoding()
716 addReplyLongLong(c,o->refcount); in objectCommand()
H A Ddebug.c405 (void*)val, val->refcount, in debugCommand()
588 j, arg, c->argv[j]->refcount); in _serverAssertPrintClientInfo()
595 serverLog(LL_WARNING,"Object refcount: %d", o->refcount); in serverLogObjectDebugInfo()
H A Dsentinel.c137 int refcount; /* Number of sentinelRedisInstance owners. */ member
932 link->refcount = 1; in createInstanceLink()
976 serverAssert(link->refcount > 0); in releaseInstanceLink()
977 link->refcount--; in releaseInstanceLink()
978 if (link->refcount != 0) { in releaseInstanceLink()
1024 if (ri->link->refcount > 1) return C_ERR; /* Already shared. */ in sentinelTryConnectionSharing()
1041 match->link->refcount++; in sentinelTryConnectionSharing()
2577 SENTINEL_MAX_PENDING_COMMANDS * ri->link->refcount) return; in sentinelSendPeriodicCommands()
2684 addReplyBulkLongLong(c,ri->link->refcount); in addReplySentinelRedisInstance()
H A Dt_string.c357 if (o && o->refcount == 1 && o->encoding == OBJ_ENCODING_INT && in incrDecrCommand()
H A Dserver.h467 int refcount; member
482 _var.refcount = 1; \
H A Ddb.c267 if (o->refcount != 1 || o->encoding != OBJ_ENCODING_RAW) { in dbUnshareStringValue()
H A Dnetworking.c201 if (cur->refcount > 1) { in dupLastObjectIfNeeded()
H A Dscripting.c602 o->refcount == 1 && in luaRedisGenericCommand()
/redis-3.2.3/tests/unit/type/
H A Dincr.tcl60 assert {[r object refcount foo] > 1}
63 assert {[r object refcount foo] > 1}
65 assert {[r object refcount foo] == 1}
71 assert {[r object refcount foo] == 1}
/redis-3.2.3/
H A D00-RELEASENOTES1474 | Fix GEORADIUS STORE/DIST refcount after backport to 3.2.