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

This commit is contained in:
antirez
2017-01-12 09:59:31 +01:00
parent e36d52227c
commit 57c81853b7
+3
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");
}