From 41c2ed7c67ca7498d068558aca3c9a27c79ad739 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 3 Oct 2021 22:51:15 +0100 Subject: [PATCH] Fixed out of memory errors when copying AT states. --- .../org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java b/src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java index 66dacac3..978ba25e 100644 --- a/src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java +++ b/src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java @@ -153,6 +153,7 @@ public class HSQLDBDatabasePruning { } } } + repository.saveChanges(); } while (latestAtStatesResultSet.next()); } @@ -161,8 +162,6 @@ public class HSQLDBDatabasePruning { } } - repository.saveChanges(); - // Finally, drop the original table and rename LOGGER.info("Deleting old AT states...");