23 lines
1022 B
Diff
23 lines
1022 B
Diff
diff --git a/memcached.c b/memcached.c
|
|
index 4a04427..cf4e0f0 100644
|
|
--- a/memcached.c
|
|
+++ b/memcached.c
|
|
@@ -4510,7 +4510,7 @@ static void process_lru_command(conn *c, token_t *tokens, const size_t ntokens)
|
|
out_string(c, "OK");
|
|
}
|
|
}
|
|
- } else if (strcmp(tokens[1].value, "mode") == 0 && ntokens >= 3 &&
|
|
+ } else if (strcmp(tokens[1].value, "mode") == 0 && ntokens >= 4 &&
|
|
settings.lru_maintainer_thread) {
|
|
if (strcmp(tokens[2].value, "flat") == 0) {
|
|
settings.lru_segmented = false;
|
|
@@ -4521,7 +4521,7 @@ static void process_lru_command(conn *c, token_t *tokens, const size_t ntokens)
|
|
} else {
|
|
out_string(c, "ERROR");
|
|
}
|
|
- } else if (strcmp(tokens[1].value, "temp_ttl") == 0 && ntokens >= 3 &&
|
|
+ } else if (strcmp(tokens[1].value, "temp_ttl") == 0 && ntokens >= 4 &&
|
|
settings.lru_maintainer_thread) {
|
|
if (!safe_strtol(tokens[2].value, &ttl)) {
|
|
out_string(c, "ERROR");
|