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

Function hashTypeConvert

src/t_hash.cpp:500–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void hashTypeConvert(robj *o, int enc) {
501 if (o->encoding == OBJ_ENCODING_ZIPLIST) {
502 hashTypeConvertZiplist(o, enc);
503 } else if (o->encoding == OBJ_ENCODING_HT) {
504 serverPanic("Not implemented");
505 } else {
506 serverPanic("Unknown hash encoding");
507 }
508}
509
510/* This is a helper function for the COPY command.
511 * Duplicate a hash object, with the guarantee that the returned object

Callers 3

hashTypeTryConversionFunction · 0.85
hashTypeSetFunction · 0.85
rdbLoadObjectFunction · 0.85

Calls 1

hashTypeConvertZiplistFunction · 0.85

Tested by

no test coverage detected