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
This commit is contained in:
parent
6df1251baa
commit
8db020e2a1
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user