mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
erasure: Support cleaning up of stale multipart objects (#5250)
Just like our single directory/disk setup, this PR brings the functionality to cleanup stale multipart objects older > 2 weeks.
This commit is contained in:
11
cmd/xl-v1.go
11
cmd/xl-v1.go
@@ -159,8 +159,15 @@ func newXLObjects(storageDisks []StorageAPI) (ObjectLayer, error) {
|
||||
return xl, nil
|
||||
}
|
||||
|
||||
// Do a quick heal on the buckets themselves for any discrepancies.
|
||||
return xl, quickHeal(xl.storageDisks, xl.writeQuorum, xl.readQuorum)
|
||||
// Perform a quick heal on the buckets and bucket metadata for any discrepancies.
|
||||
if err = quickHeal(xl.storageDisks, xl.writeQuorum, xl.readQuorum); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Start background process to cleanup old multipart objects in `.minio.sys`.
|
||||
go cleanupStaleMultipartUploads(multipartCleanupInterval, multipartExpiry, xl, xl.listMultipartUploadsCleanup, globalServiceDoneCh)
|
||||
|
||||
return xl, nil
|
||||
}
|
||||
|
||||
// Shutdown function for object storage interface.
|
||||
|
||||
Reference in New Issue
Block a user