mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 14:36:15 +03:00
Add initial cut of auto expiry of objects
This commit is contained in:
@@ -59,6 +59,9 @@ func getNewCloudStorageAPI(conf serverConfig) CloudStorageAPI {
|
||||
|
||||
fs.SetRootPath(conf.Path)
|
||||
fs.SetMinFreeDisk(conf.MinFreeDisk)
|
||||
if conf.Expiry > 0 {
|
||||
go fs.AutoExpiryThread(conf.Expiry)
|
||||
}
|
||||
return CloudStorageAPI{
|
||||
Filesystem: fs,
|
||||
Anonymous: conf.Anonymous,
|
||||
|
||||
Reference in New Issue
Block a user