mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Fix maxmemory shared integer check bug introduced with LFU.
This commit is contained in:
parent
2d5eb1f1a0
commit
e0582b3598
@ -403,7 +403,7 @@ robj *tryObjectEncoding(robj *o) {
|
||||
* because every object needs to have a private LRU field for the LRU
|
||||
* algorithm to work well. */
|
||||
if ((server.maxmemory == 0 ||
|
||||
!(server.maxmemory & MAXMEMORY_FLAG_NO_SHARED_INTEGERS)) &&
|
||||
!(server.maxmemory_policy & MAXMEMORY_FLAG_NO_SHARED_INTEGERS)) &&
|
||||
value >= 0 &&
|
||||
value < OBJ_SHARED_INTEGERS)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user