Fix an important metadata getObject bug in donut

This commit is contained in:
Harshavardhana 2015-10-01 10:16:14 -07:00
parent 81cc017f91
commit 3b070dee16

View File

@ -135,7 +135,7 @@ func (b bucket) getBucketMetadata() (*AllBuckets, *probe.Error) {
func (b bucket) GetObjectMetadata(objectName string) (ObjectMetadata, *probe.Error) {
b.lock.Lock()
defer b.lock.Unlock()
return b.readObjectMetadata(objectName)
return b.readObjectMetadata(normalizeObjectName(objectName))
}
// ListObjects - list all objects