Objects: run tx commit callbacks in empty transactions

This commit is contained in:
2025-03-14 22:23:36 +01:00
parent ae17ab6ce9
commit 223ba20418

View File

@@ -170,6 +170,11 @@ public class JObjectManager {
if (writes.isEmpty()) {
Log.trace("Committing transaction - no changes");
for (var callback : tx.getOnCommit()) {
callback.run();
}
return new TransactionHandle() {
@Override
public void onFlush(Runnable runnable) {