Skip to content

Commit

Permalink
Merge pull request #312 from VEuPathDB/issue-290
Browse files Browse the repository at this point in the history
put delete flag in minio before postgres
  • Loading branch information
Foxcapades authored May 17, 2024
2 parents 6faad76 + 5a2b0a0 commit df0908b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ internal fun userDeleteDataset(userID: UserID, datasetID: DatasetID) {

private fun deleteUserDataset(userID: UserID, datasetID: DatasetID) {
vdi.component.db.cache.CacheDB().withTransaction {
// Update the deleted flag in the local pg.
it.updateDatasetDeleted(datasetID, true)

// Put a delete flag in S3 for the target dataset.
DatasetStore.putDeleteFlag(userID, datasetID)

// Update the deleted flag in the local pg.
it.updateDatasetDeleted(datasetID, true)
}
}

0 comments on commit df0908b

Please sign in to comment.