Cleanup temporary writers upon errors during putObject(), all metadata() write operations

This commit is contained in:
Harshavardhana
2015-07-10 14:04:37 -07:00
parent 6860b310c9
commit 29838bb851
5 changed files with 49 additions and 19 deletions

View File

@@ -123,6 +123,8 @@ func New() (Interface, error) {
return a, nil
}
/// V2 API functions
// GetObject - GET object from cache buffer
func (donut API) GetObject(w io.Writer, bucket string, object string) (int64, error) {
donut.lock.Lock()