mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-11 14:20:54 +01:00
Fixed a backup related database exception
- Backup closed database before the database executed index creation leading to an error
This commit is contained in:
parent
f8e924060b
commit
d21fd5e813
@ -201,7 +201,15 @@ public abstract class SQLDB extends AbstractDatabase {
|
||||
runnableFactory.create("Database Index Creation", new AbsRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
executeTransaction(new CreateIndexTransaction());
|
||||
if (getState() == State.CLOSED || getState() == State.CLOSING) {
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
try {
|
||||
executeTransaction(new CreateIndexTransaction());
|
||||
} catch (DBOpException e) {
|
||||
errorLogger.log(L.WARN, e);
|
||||
}
|
||||
}
|
||||
}).runTaskLaterAsynchronously(TimeAmount.toTicks(1, TimeUnit.MINUTES));
|
||||
} catch (Exception ignore) {
|
||||
|
Loading…
Reference in New Issue
Block a user