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:
Harshavardhana
2015-07-05 18:44:55 -07:00
parent d0386dbce0
commit 4a27ab0e58
7 changed files with 86 additions and 53 deletions
-2
View File
@@ -23,7 +23,6 @@ import (
"encoding/hex"
"io/ioutil"
"testing"
"time"
. "github.com/minio/check"
)
@@ -41,7 +40,6 @@ func (s *MyCacheSuite) SetUpSuite(c *C) {
conf := new(Config)
conf.DonutName = ""
conf.NodeDiskMap = nil
conf.Expiration = time.Duration(1 * time.Hour)
conf.MaxSize = 100000
var err error