expiry: Remove auto-expiry.

Move the logic outside and use scripting, cronjob to delete files.

Fixes #1019
This commit is contained in:
Harshavardhana
2016-02-02 19:35:47 -08:00
parent 15924a8f05
commit 454d71cafa
3 changed files with 3 additions and 67 deletions

View File

@@ -146,9 +146,6 @@ func getNewCloudStorageAPI(conf cloudServerConfig) CloudStorageAPI {
fatalIf(err.Trace(), "Initializing filesystem failed.", nil)
fs.SetMinFreeDisk(conf.MinFreeDisk)
if conf.Expiry > 0 {
go fs.AutoExpiryThread(conf.Expiry)
}
return CloudStorageAPI{
Filesystem: fs,
AccessLog: conf.AccessLog,