Defrag: don't crash when a module value is encountered.

This commit is contained in:
antirez 2017-01-12 09:50:40 +01:00
parent baa9898821
commit 3f79b2f883

View File

@ -406,6 +406,9 @@ int defragKey(redisDb *db, dictEntry *de) {
} else {
serverPanic("Unknown hash encoding");
}
} else if (ob->type == OBJ_MODULE) {
/* Currently defragmenting modules private data types
* is not supported. */
} else {
serverPanic("Unknown object type");
}