Inmemory donutbox is now thread safe

This commit is contained in:
Frederick F. Kautz IV
2015-03-14 19:21:27 -07:00
parent 74eb6067f6
commit 7e61696901
3 changed files with 71 additions and 43 deletions

View File

@@ -14,7 +14,7 @@ type DonutBox interface {
SetBucketMetadata(bucket, name string, metadata io.Reader) error
// object operations
GetObjectWriter(bucket, object string, column, blockSize uint) (io.WriteCloser, <-chan Result, error)
GetObjectWriter(bucket, object string, column, blockSize uint) *io.PipeWriter
GetObjectReader(bucket, object string, column int) (io.Reader, error)
StoreObjectMetadata(bucket, object, name string, reader io.Reader) error
GetObjectMetadata(bucket, object, name string) (io.Reader, error)