Skip to content

Commit

Permalink
#LUC070-147 Revert clearing of the deposit paths and chunk data (as i…
Browse files Browse the repository at this point in the history
…t causes ref integrity issues when Audit data exists for the deposit)
  • Loading branch information
dspeed2 committed Dec 17, 2024
1 parent bf17eed commit 9cca558
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,10 @@ void process13DeleteStart(DeleteStart event, Deposit deposit) {
void process14DeleteComplete(DeleteComplete event, Deposit deposit) {
long depositSizeBeforeDelete = deposit.getSize();
deposit.setStatus(Deposit.Status.DELETED);
deposit.setDepositPaths(Collections.emptyList());
depositsService.deleteDepositPaths(deposit.getID());
deposit.setDepositChunks(Collections.emptyList());
depositsService.deleteDepositChunks(deposit.getID());
//deposit.setDepositPaths(Collections.emptyList());
//depositsService.deleteDepositPaths(deposit.getID());
//deposit.setDepositChunks(Collections.emptyList());
//depositsService.deleteDepositChunks(deposit.getID());
deposit.setSize(0);
depositsService.updateDeposit(deposit);

Expand Down

0 comments on commit 9cca558

Please sign in to comment.