mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
Fix another deadlock inside CreateObjectPart() code, premature return without Unlocking()
Also this patch changes the cache key element to be interface{} type not string.
This commit is contained in:
@@ -26,7 +26,6 @@ import (
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
. "github.com/minio/check"
|
||||
)
|
||||
@@ -65,7 +64,6 @@ func (s *MyDonutSuite) SetUpSuite(c *C) {
|
||||
conf := new(Config)
|
||||
conf.DonutName = "test"
|
||||
conf.NodeDiskMap = createTestNodeDiskMap(root)
|
||||
conf.Expiration = time.Duration(1 * time.Hour)
|
||||
conf.MaxSize = 100000
|
||||
|
||||
dd, err = New(conf)
|
||||
|
||||
Reference in New Issue
Block a user