From de3bd20fe3ff62e869885109f4dfd42e3ad4e5c9 Mon Sep 17 00:00:00 2001 From: zhangyue Date: Wed, 12 Dec 2018 19:41:13 +0800 Subject: [PATCH] bugfix: use GetError instead of RDBError to return Signed-off-by: zhangyue --- rbd/rbd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index e754fde..667ff99 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -464,7 +464,7 @@ func (image *Image) Copy(args ...interface{}) error { case string: c_destname := C.CString(t2) defer C.free(unsafe.Pointer(c_destname)) - return RBDError(C.rbd_copy(image.image, + return GetError(C.rbd_copy(image.image, C.rados_ioctx_t(t.Pointer()), c_destname)) default: