Skip to content

Commit

Permalink
Adding mlock for RO stores
Browse files Browse the repository at this point in the history
  • Loading branch information
abh1nay committed Nov 29, 2012
1 parent 7c49c64 commit 99dc97f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java/voldemort/store/readonly/io/jna/mman.java
Expand Up @@ -47,7 +47,7 @@ public static Pointer mmap(long len, int prot, int flags, int fildes, long off)

if(Pointer.nativeValue(result) == -1) {

logger.warn(errno.strerror());
logger.debug(errno.strerror());
}

return result;
Expand All @@ -59,7 +59,7 @@ public static int munmap(Pointer addr, long len) throws IOException {
int result = Delegate.munmap(addr, new NativeLong(len));

if(result != 0) {
logger.warn(errno.strerror());
logger.debug(errno.strerror());
}

return result;
Expand All @@ -72,8 +72,8 @@ public static void mlock(Pointer addr, long len) throws IOException {
if(res != 0) {
String error = errno.strerror();
logger.warn("Mlock failed probably because of insufficient privileges");
logger.warn(error);
logger.warn(res);
logger.debug(error);
logger.debug(res);
} else {
logger.info("Mlock successfull");

Expand Down

0 comments on commit 99dc97f

Please sign in to comment.