An attempt to bring in memory layer into donut driver

This commit is contained in:
Harshavardhana committed 2015-06-27 17:23:34 -07:00
1 parent 7ab16b5b83
commit 45a7eab804
11 files changed
+713 -132

No files matched your search

+1 -1
View File
@@ -321,7 +321,7 @@ func (memory *memoryDriver) createObject(bucket, key, contentType, expectedMD5Su
func (memory *memoryDriver) CreateBucket(bucketName, acl string) error {
memory.lock.RLock()
if len(memory.storedBuckets) == totalBuckets {
memory.lock.RLock()
memory.lock.RUnlock()
return iodine.New(drivers.TooManyBuckets{Bucket: bucketName}, nil)
}
if !drivers.IsValidBucket(bucketName) {