Skip to content

Commit

Permalink
put delete flag in minio before postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed May 16, 2024
1 parent 2697ae1 commit 5a2b0a0
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 5a2b0a0

Please sign in to comment.