Skip to content

Commit 1ac995c

Browse files
committed
wip
1 parent 27b6fd0 commit 1ac995c

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

core/sail/lmdb/src/main/java/org/eclipse/rdf4j/sail/lmdb/LmdbUtil.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ static <T> T readTransaction(long env, long writeTxn, Transaction<T> transaction
9999
return ret;
100100
}
101101

102-
103-
static <T> T readTransaction(long env, long writeTxn, long id, TransactionWithId<T> transaction) throws IOException {
102+
static <T> T readTransaction(long env, long writeTxn, long id, TransactionWithId<T> transaction)
103+
throws IOException {
104104
try (MemoryStack stack = stackPush()) {
105105
long txn;
106106
if (writeTxn == 0) {
@@ -122,8 +122,6 @@ static <T> T readTransaction(long env, long writeTxn, long id, TransactionWithId
122122

123123
}
124124

125-
126-
127125
static <T> T transaction(long env, Transaction<T> transaction) throws IOException {
128126
T ret;
129127
try (MemoryStack stack = stackPush()) {

core/sail/lmdb/src/main/java/org/eclipse/rdf4j/sail/lmdb/ValueStore.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,6 @@ ValueStoreRevision getRevision() {
454454
return revision;
455455
}
456456

457-
458-
459-
460457
private final LmdbUtil.TransactionWithId<byte[]> GET_DATA_FN = this::getDataInTxn;
461458

462459
protected byte[] getData(long id) throws IOException {
@@ -486,13 +483,12 @@ private byte[] getDataInTxn(MemoryStack stack, long txn, long id) {
486483
return null;
487484
}
488485

489-
ByteBuffer src = valueData.mv_data(); // don’t call twice
486+
ByteBuffer src = valueData.mv_data(); // don’t call twice
490487
byte[] out = new byte[src.remaining()];
491488
src.get(out);
492489
return out;
493490
}
494491

495-
496492
/**
497493
* Get value from cache by ID.
498494
* <p>

0 commit comments

Comments
 (0)