mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 04:51:32 +00:00
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:
@ -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 */
|
||||||
|
Reference in New Issue
Block a user