◐ Shell
clean mode source ↗

Library.java : fix mdb_reader_check api, Env.java : readerCheck impl by tran4o · Pull Request #212 · lmdbjava/lmdbjava

Expand Up @@ -41,6 +41,7 @@ import java.util.List;
import jnr.ffi.Pointer; import jnr.ffi.byref.IntByReference; import jnr.ffi.byref.PointerByReference; import org.lmdbjava.Library.MDB_envinfo; import org.lmdbjava.Library.MDB_stat; Expand Down Expand Up @@ -500,6 +501,15 @@ private void validatePath(final File path) { validateDirectoryEmpty(path); }

/* Check for stale entries in the reader lock table. */ public int readerCheck() { final IntByReference resultPtr = new IntByReference(); checkRc(LIB.mdb_reader_check(ptr, resultPtr)); return resultPtr.intValue(); }

/** * Object has already been closed and the operation is therefore prohibited. */ Expand Down Expand Up @@ -530,6 +540,7 @@ public AlreadyOpenException() { } }

/** * Builder for configuring and opening Env. * Expand Down Expand Up @@ -595,6 +606,7 @@ public Env<T> open(final File path, final EnvFlags... flags) { return open(path, 0664, flags); }

/** * Sets the map size. * Expand Down