diff options
author | therealbill <therealbill@me.com> | 2016-04-22 10:43:48 -0500 |
---|---|---|
committer | therealbill <therealbill@me.com> | 2016-04-22 10:43:48 -0500 |
commit | 14086a46ca69f267d909817eb6bbcd1d976d94f2 (patch) | |
tree | 66de1f3d5774b1f7257e10f59c88af7b3e491fa0 /src/config.c | |
parent | 4cbe0444390b87a0c366d098c066bf9249d7c9fd (diff) | |
download | redis-14086a46ca69f267d909817eb6bbcd1d976d94f2.tar.gz |
fix for #3187
I've renamed maxmemoryToString to evictPolicyToString since that is
more accurate (and easier to mentally connect with the correct data), as
well as updated the function to user server.maxmemory_policy rather than
server.maxmemory. Now with a default config it is actually returning
the correct policy rather than volatile-lru.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index e5ee5dd66..d9ea05d0b 100644 --- a/src/config.c +++ b/src/config.c @@ -126,8 +126,8 @@ const char *configEnumGetNameOrUnknown(configEnum *ce, int val) { } /* Used for INFO generation. */ -const char *maxmemoryToString(void) { - return configEnumGetNameOrUnknown(maxmemory_policy_enum,server.maxmemory); +const char *evictPolicyToString(void) { + return configEnumGetNameOrUnknown(maxmemory_policy_enum,server.maxmemory_policy); } /*----------------------------------------------------------------------------- |