Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e0582b35
"doc/SinterCommand.html" did not exist on "37be27653817f0c4c18d695ceea082e0bb7bf462"
Commit
e0582b35
authored
Jul 21, 2016
by
antirez
Browse files
Fix maxmemory shared integer check bug introduced with LFU.
parent
2d5eb1f1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/object.c
View file @
e0582b35
...
@@ -403,7 +403,7 @@ robj *tryObjectEncoding(robj *o) {
...
@@ -403,7 +403,7 @@ robj *tryObjectEncoding(robj *o) {
* because every object needs to have a private LRU field for the LRU
* because every object needs to have a private LRU field for the LRU
* algorithm to work well. */
* algorithm to work well. */
if
((
server
.
maxmemory
==
0
||
if
((
server
.
maxmemory
==
0
||
!
(
server
.
maxmemory
&
MAXMEMORY_FLAG_NO_SHARED_INTEGERS
))
&&
!
(
server
.
maxmemory
_policy
&
MAXMEMORY_FLAG_NO_SHARED_INTEGERS
))
&&
value
>=
0
&&
value
>=
0
&&
value
<
OBJ_SHARED_INTEGERS
)
value
<
OBJ_SHARED_INTEGERS
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment