Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Library.java : fix mdb_reader_check api, Env.java : readerCheck impl#212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
benalexau merged 5 commits intolmdbjava:masterfromplan-vision:master
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletionssrc/main/java/org/lmdbjava/Env.java
View file
Open in desktop
Original file line numberDiff line numberDiff line change
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 DownExpand 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 DownExpand Up@@ -530,6 +540,7 @@ public AlreadyOpenException() {
}
}


/**
* Builder for configuring and opening Env.
*
Expand DownExpand 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
2 changes: 1 addition & 1 deletionsrc/main/java/org/lmdbjava/Library.java
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -291,7 +291,7 @@ int mdb_put(@In Pointer txn, @In Pointer dbi, @In Pointer key,
@In Pointer data,
int flags);

int mdb_reader_check(@In Pointer env,int dead);
int mdb_reader_check(@In Pointer env,@Out IntByReference dead);

int mdb_set_compare(@In Pointer txn, @In Pointer dbi, ComparatorCallback cb);

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp