Skip to content

Commit

Permalink
Fix #202 Memory lock not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Royer committed Jun 22, 2018
1 parent 884aa1c commit 8299a6b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.cassandra.cql3.QueryProcessor;
import org.apache.cassandra.db.SystemKeyspace;
import org.apache.cassandra.utils.FBUtilities;
import org.apache.cassandra.utils.NativeLibrary;
import org.apache.cassandra.utils.WindowsTimer;
import org.apache.logging.log4j.Logger;
import org.elassandra.NoPersistedMetaDataException;
Expand Down Expand Up @@ -151,6 +152,9 @@ public void activate(boolean addShutdownHook, boolean createNode, Settings setti
}
*/

// #202 Initialize NativeLibrary.jnaLockable for correct Node initialization.
NativeLibrary.tryMlockall();

//setup(addShutdownHook, settings, env, pluginList);
org.elasticsearch.bootstrap.Bootstrap.initializeNatives(
env.tmpFile(),
Expand Down

0 comments on commit 8299a6b

Please sign in to comment.