Skip to content

Commit

Permalink
fix: consolidation with collapsing does not release all the datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvaroquauxads committed Jan 25, 2024
1 parent a4ed1c8 commit cc24497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/svc/consolidater.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ func (svc *Service) csldSwapDatasets(ctx context.Context, job *geocube.Job) erro
if err := txn.ChangeDatasetsStatus(ctx, job.ID, geocube.DatasetStatusACTIVE, geocube.DatasetStatusTODELETE); err != nil {
return err
}
} else {
job.ReleaseDatasets(geocube.LockFlagTODELETE)
}

// Inactive datasets are tagged active
Expand Down

0 comments on commit cc24497

Please sign in to comment.