Skip to content

Commit

Permalink
[#460] Clear unused path info after backupConfig (memory pleasure) (#461
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vharseko authored Jan 17, 2025
1 parent b03cfbb commit 47d6d90
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2016 ForgeRock AS.
* Portions Copyright 2025 3A Systems, LLC.
*/
package org.opends.server.tasks;

Expand Down Expand Up @@ -387,6 +388,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 +459,7 @@ public void interruptTask(TaskState interruptState, LocalizableMessage interrupt
interruptReason));
setTaskInterruptState(interruptState);
backupConfig.cancel();
backupConfig=null;
}
}

Expand Down

0 comments on commit 47d6d90

Please sign in to comment.