mirror of
https://github.com/minio/minio.git
synced 2025-11-28 13:09:09 -05:00
erasure: Reduce the interval of cleaning up .trash folder (#11741)
Reduce from 30 to 10 minutes.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user