Permalink
Browse files

Adding mlock for RO stores

  • Loading branch information...
1 parent 7c49c64 commit 99dc97f88664bfc833abe7945fd8af2d175f777e @abh1nay abh1nay committed Nov 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/java/voldemort/store/readonly/io/jna/mman.java
@@ -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;
@@ -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;
@@ -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");

0 comments on commit 99dc97f

Please sign in to comment.