| 498 | } |
| 499 | |
| 500 | void 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 |
no test coverage detected