Fix issues with multipart upload

This commit is contained in:
Harshavardhana
2015-07-06 16:18:39 -07:00
parent 474954022e
commit 8b94c53345
4 changed files with 26 additions and 19 deletions

View File

@@ -113,7 +113,12 @@ func New() (Interface, error) {
return nil, iodine.New(err, nil)
}
for k, v := range buckets {
a.storedBuckets.Set(k, v)
var newBucket = storedBucket{}
newBucket.objectMetadata = make(map[string]ObjectMetadata)
newBucket.multiPartSession = make(map[string]MultiPartSession)
newBucket.partMetadata = make(map[int]PartMetadata)
newBucket.bucketMetadata = v
a.storedBuckets.Set(k, newBucket)
}
}
return a, nil