Commit 57c81853 authored by antirez's avatar antirez
Browse files

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

parent e36d5222
...@@ -406,6 +406,9 @@ int defragKey(redisDb *db, dictEntry *de) { ...@@ -406,6 +406,9 @@ int defragKey(redisDb *db, dictEntry *de) {
} else { } else {
serverPanic("Unknown hash encoding"); serverPanic("Unknown hash encoding");
} }
} else if (ob->type == OBJ_MODULE) {
/* Currently defragmenting modules private data types
* is not supported. */
} else { } else {
serverPanic("Unknown object type"); serverPanic("Unknown object type");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment