Ensure proper stale_uploads_cleanup_interval is used at all times (#20451)
This commit is contained in:
+10
-1
@@ -183,13 +183,22 @@ func (t *apiConfig) init(cfg api.Config, setDriveCounts []int, legacy bool) {
|
||||
t.transitionWorkers = cfg.TransitionWorkers
|
||||
|
||||
t.staleUploadsExpiry = cfg.StaleUploadsExpiry
|
||||
t.staleUploadsCleanupInterval = cfg.StaleUploadsCleanupInterval
|
||||
t.deleteCleanupInterval = cfg.DeleteCleanupInterval
|
||||
t.enableODirect = cfg.EnableODirect
|
||||
t.gzipObjects = cfg.GzipObjects
|
||||
t.rootAccess = cfg.RootAccess
|
||||
t.syncEvents = cfg.SyncEvents
|
||||
t.objectMaxVersions = cfg.ObjectMaxVersions
|
||||
|
||||
if t.staleUploadsCleanupInterval != cfg.StaleUploadsCleanupInterval {
|
||||
t.staleUploadsCleanupInterval = cfg.StaleUploadsCleanupInterval
|
||||
|
||||
// signal that cleanup interval has changed
|
||||
select {
|
||||
case staleUploadsCleanupIntervalChangedCh <- struct{}{}:
|
||||
default: // in case the channel is blocked...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (t *apiConfig) odirectEnabled() bool {
|
||||
|
||||
Reference in New Issue
Block a user