Browse Source

Update status when performing repository maintenance

v2.0-beta
CalDescent 3 years ago
parent
commit
b6d3e82304
  1. 2
      src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java

2
src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabasePruning.java

@ -318,6 +318,8 @@ public class HSQLDBDatabasePruning {
public static void performMaintenance(Repository repository) throws SQLException, DataException { public static void performMaintenance(Repository repository) throws SQLException, DataException {
try { try {
SplashFrame.getInstance().updateStatus("Performing maintenance...");
// Timeout if the database isn't ready for backing up after 5 minutes // Timeout if the database isn't ready for backing up after 5 minutes
// Nothing else should be using the db at this point, so a timeout shouldn't happen // Nothing else should be using the db at this point, so a timeout shouldn't happen
long timeout = 5 * 60 * 1000L; long timeout = 5 * 60 * 1000L;

Loading…
Cancel
Save