Commit 8db020e2 authored by Matt Stancliff's avatar Matt Stancliff Committed by antirez
Browse files

Fix assert technical correctness

dictAdd returns DICT_OK, not REDIS_OK. They both
have the same underlying values, so it works even though
the code is technically wrong.

Fixes #1512
parent 6df1251b
...@@ -943,7 +943,7 @@ robj *rdbLoadObject(int rdbtype, rio *rdb) { ...@@ -943,7 +943,7 @@ robj *rdbLoadObject(int rdbtype, rio *rdb) {
/* Add pair to hash table */ /* Add pair to hash table */
ret = dictAdd((dict*)o->ptr, field, value); ret = dictAdd((dict*)o->ptr, field, value);
redisAssert(ret == REDIS_OK); redisAssert(ret == DICT_OK);
} }
/* All pairs should be read by now */ /* All pairs should be read by now */
......
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