diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2020-09-09 14:06:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 15:06:04 +0300 |
commit | b2419c31c166bd2d73f7af3d089859795c0e3506 (patch) | |
tree | 43936ec9b363900e4429c873e9e6703cb5978ebb /src | |
parent | 918abd7276afcb994f2d3f8a86a0708993420e37 (diff) | |
download | redis-b2419c31c166bd2d73f7af3d089859795c0e3506.tar.gz |
Check that THP is not set to always (madvise is ok) (#4001)
THP can also be set to madvise, in which case it shouldn't cause
problems for Redis since redis (or the allocator) doesn't use madvise
to activate it.
Diffstat (limited to 'src')
-rw-r--r-- | src/latency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latency.c b/src/latency.c index dfdc6668c..b5ccc7cc6 100644 --- a/src/latency.c +++ b/src/latency.c @@ -71,7 +71,7 @@ int THPIsEnabled(void) { return 0; } fclose(fp); - return (strstr(buf,"[never]") == NULL) ? 1 : 0; + return (strstr(buf,"[always]") != NULL) ? 1 : 0; } #endif |