mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
Disable eviction on 0 expiration time
This commit is contained in:
parent
f59535f052
commit
94e24f1a05
@ -85,7 +85,9 @@ func Start(maxSize uint64, expiration time.Duration) (chan<- string, <-chan erro
|
||||
memory.objects.OnEvicted = memory.evictObject
|
||||
|
||||
// set up memory expiration
|
||||
go memory.expireLRUObjects()
|
||||
if expiration > 0 {
|
||||
go memory.expireLRUObjects()
|
||||
}
|
||||
|
||||
go start(ctrlChannel, errorChannel)
|
||||
return ctrlChannel, errorChannel, memory
|
||||
|
Loading…
Reference in New Issue
Block a user