summaryrefslogtreecommitdiff
path: root/src/latency.c
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2020-09-09 14:06:04 +0200
committerGitHub <noreply@github.com>2020-09-09 15:06:04 +0300
commitb2419c31c166bd2d73f7af3d089859795c0e3506 (patch)
tree43936ec9b363900e4429c873e9e6703cb5978ebb /src/latency.c
parent918abd7276afcb994f2d3f8a86a0708993420e37 (diff)
downloadredis-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/latency.c')
-rw-r--r--src/latency.c2
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