From 929dba866758fcf9be4b984a83f6f08196cc6b4e Mon Sep 17 00:00:00 2001 From: lzh3636 Date: Mon, 26 Feb 2018 09:55:32 -0500 Subject: [PATCH] Fix log message when virtual lock not possible (#28829) When virtual lock is not possible because JNA is unavailable, we log a warning message. Yet, this log message refers to mlockall rather than virtual lock, presumably because of a copy/paste error. This commit fixes this issue. --- server/src/main/java/org/elasticsearch/bootstrap/Natives.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/bootstrap/Natives.java b/server/src/main/java/org/elasticsearch/bootstrap/Natives.java index ef40b5b862e..e428df66f14 100644 --- a/server/src/main/java/org/elasticsearch/bootstrap/Natives.java +++ b/server/src/main/java/org/elasticsearch/bootstrap/Natives.java @@ -70,7 +70,7 @@ final class Natives { static void tryVirtualLock() { if (!JNA_AVAILABLE) { - logger.warn("cannot mlockall because JNA is not available"); + logger.warn("cannot virtual lock because JNA is not available"); return; } JNANatives.tryVirtualLock();