Skip to content

Commit

Permalink
[OpenIdentityPlatform#460] Clear unused path info after backupConfig …
Browse files Browse the repository at this point in the history
…(memory pleasure)
  • Loading branch information
vharseko committed Jan 15, 2025
1 parent 1672a9a commit 1c959bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ private boolean backupBackend(LocalBackend<?> b, File backupLocation)
DirectoryServer.notifyBackupEnded(b, backupConfig, false);
logger.error(ERR_BACKUPDB_ERROR_DURING_BACKUP, b.getBackendID(), getExceptionMessage(e));
return false;
}finally {
backupConfig=null;
}

return true;
Expand Down Expand Up @@ -456,6 +458,7 @@ public void interruptTask(TaskState interruptState, LocalizableMessage interrupt
interruptReason));
setTaskInterruptState(interruptState);
backupConfig.cancel();
backupConfig=null;
}
}

Expand Down

0 comments on commit 1c959bc

Please sign in to comment.