erasure: Reduce the interval of cleaning up .trash folder (#11741)

Reduce from 30 to 10 minutes.
This commit is contained in:
Anis Elleuch 2021-03-09 18:45:38 +01:00 committed by GitHub
parent 2f29719e6b
commit 57f3ed22d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ func newErasureSets(ctx context.Context, endpoints Endpoints, storageDisks []Sto
} }
// cleanup ".trash/" folder every 30 minutes with sufficient sleep cycles. // cleanup ".trash/" folder every 30 minutes with sufficient sleep cycles.
const deletedObjectsCleanupInterval = 30 * time.Minute const deletedObjectsCleanupInterval = 10 * time.Minute
// start cleanup stale uploads go-routine. // start cleanup stale uploads go-routine.
go s.cleanupStaleUploads(ctx, GlobalStaleUploadsCleanupInterval, GlobalStaleUploadsExpiry) go s.cleanupStaleUploads(ctx, GlobalStaleUploadsCleanupInterval, GlobalStaleUploadsExpiry)