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
b4f2e412
Commit
b4f2e412
authored
Oct 11, 2010
by
antirez
Browse files
free memory if the maxmemory parameter is reduced via CONFIG SET
parent
1dd10ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
b4f2e412
...
...
@@ -241,6 +241,7 @@ void configSetCommand(redisClient *c) {
if
(
getLongLongFromObject
(
o
,
&
ll
)
==
REDIS_ERR
||
ll
<
0
)
goto
badfmt
;
server
.
maxmemory
=
ll
;
if
(
server
.
maxmemory
)
freeMemoryIfNeeded
();
}
else
if
(
!
strcasecmp
(
c
->
argv
[
2
]
->
ptr
,
"timeout"
))
{
if
(
getLongLongFromObject
(
o
,
&
ll
)
==
REDIS_ERR
||
ll
<
0
||
ll
>
LONG_MAX
)
goto
badfmt
;
...
...
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