mirror of
https://github.com/fluencelabs/redis
synced 2025-05-03 06:22:13 +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:
parent
0c8999dfeb
commit
8dbd0134e5
@ -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