[Minor] removed all tx.commitOnClose() for read only TXs

This commit is contained in:
Robert von Burg 2015-02-06 22:26:30 +01:00
parent 3fc4c83a61
commit 2375c94dd6
3 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit c3fe4bdec64d1eb56c28f9df0e19a7c7bbc570c7
Subproject commit e1a3a4fca8458e5aa1c4cd57db26bb0a2852f26b

View File

@ -115,6 +115,8 @@ public class CachedRealm extends InternalStrolchRealm {
nrOfResources++;
}
}
tx.commitOnClose();
}
try (StrolchTransaction tx = openTx(privilegeContext.getCertificate(), DefaultRealmHandler.AGENT_BOOT)) {
@ -127,6 +129,8 @@ public class CachedRealm extends InternalStrolchRealm {
nrOfOrders++;
}
}
tx.commitOnClose();
}
long duration = System.nanoTime() - start;

View File

@ -161,6 +161,7 @@ public class OrderModelTestRunner {
try (StrolchTransaction tx = this.runtimeMock.getRealm(this.realmName).openTx(this.certificate, "test")) {
OrderMap orderMap = tx.getOrderMap();
orderMap.removeAll(tx, orderMap.getAllElements(tx));
tx.commitOnClose();
}
{