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

Function rdbLoadObjectType

src/rdb.cpp:720–725  ·  view source on GitHub ↗

Use rdbLoadType() to load a TYPE in RDB format, but returns -1 if the * type is not specifically a valid Object Type. */

Source from the content-addressed store, hash-verified

718/* Use rdbLoadType() to load a TYPE in RDB format, but returns -1 if the
719 * type is not specifically a valid Object Type. */
720int rdbLoadObjectType(rio *rdb) {
721 int type;
722 if ((type = rdbLoadType(rdb)) == -1) return -1;
723 if (!rdbIsObjectType(type)) return -1;
724 return type;
725}
726
727/* This helper function serializes a consumer group Pending Entries List (PEL)
728 * into the RDB file. The 'nacks' argument tells the function if also persist

Callers 3

mvccrestoreCommandFunction · 0.85
restoreCommandFunction · 0.85
deserializeStoredObjectFunction · 0.85

Calls 1

rdbLoadTypeFunction · 0.85

Tested by

no test coverage detected