mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 21:20:23 +03:00
+3
-3
@@ -140,9 +140,9 @@ func newXLObjects(storageDisks []StorageAPI) (ObjectLayer, error) {
|
||||
// Check if object cache is enabled.
|
||||
if xl.objCacheEnabled {
|
||||
// Initialize object cache.
|
||||
objCache, err := objcache.New(maxCacheSize, objcache.DefaultExpiry)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
objCache, oerr := objcache.New(maxCacheSize, objcache.DefaultExpiry)
|
||||
if oerr != nil {
|
||||
return nil, oerr
|
||||
}
|
||||
objCache.OnEviction = func(key string) {
|
||||
debug.FreeOSMemory()
|
||||
|
||||
Reference in New Issue
Block a user