Permalink
Browse files

update

  • Loading branch information...
1 parent d4418c2 commit c4dbe72f2f36330c38112eb8382ca4a4dfaabf1a Fisher committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rados_io.go
View
@@ -110,7 +110,7 @@ func (r *RadosIoCtx) Append(oid string, bin []byte) error {
}
func (r *RadosIoCtx) Read(oid string, length, offset uint64) ([]byte, error) {
- var buf = make([]byte, 0, length)
+ var buf = make([]byte, length)
cerr := C.rados_read(*r.ctx, C.CString(oid), (*C.char)(unsafe.Pointer(&buf[0])), C.size_t(length), C.uint64_t(offset))
if cerr < 0 {
return nil, errors.New("read data failed")

0 comments on commit c4dbe72

Please sign in to comment.