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

Function mvccFromObj

src/object.cpp:1715–1722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1713}
1714
1715uint64_t mvccFromObj(robj_roptr o)
1716{
1717 if (g_pserver->fActiveReplica) {
1718 redisObjectExtended *oe = reinterpret_cast<redisObjectExtended*>(o.unsafe_robjcast()) - 1;
1719 return oe->mvcc_tstamp;
1720 }
1721 return OBJ_MVCC_INVALID;
1722}
1723
1724void setMvccTstamp(robj *o, uint64_t mvcc)
1725{

Callers 9

dbMergeFunction · 0.85
ensureMethod · 0.85
createDumpPayloadFunction · 0.85
rdbSaveKeyValuePairFunction · 0.85
processJobMethod · 0.85
rdbLoadRioFunction · 0.85
objectCommandFunction · 0.85

Calls 1

unsafe_robjcastMethod · 0.80

Tested by

no test coverage detected