Fixed out of memory errors when copying AT states.

This commit is contained in:
CalDescent 2021-10-03 22:51:15 +01:00
parent cdf47d4719
commit 41c2ed7c67

View File

@ -153,6 +153,7 @@ public class HSQLDBDatabasePruning {
} }
} }
} }
repository.saveChanges();
} while (latestAtStatesResultSet.next()); } while (latestAtStatesResultSet.next());
} }
@ -161,8 +162,6 @@ public class HSQLDBDatabasePruning {
} }
} }
repository.saveChanges();
// Finally, drop the original table and rename // Finally, drop the original table and rename
LOGGER.info("Deleting old AT states..."); LOGGER.info("Deleting old AT states...");