[Minor] removed all tx.commitOnClose() for read only TXs
This commit is contained in:
parent
3fc4c83a61
commit
2375c94dd6
|
@ -1 +1 @@
|
|||
Subproject commit c3fe4bdec64d1eb56c28f9df0e19a7c7bbc570c7
|
||||
Subproject commit e1a3a4fca8458e5aa1c4cd57db26bb0a2852f26b
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue