mirror of
https://github.com/ceph/go-ceph
synced 2024-12-24 23:22:33 +00:00
bugfix: use GetError instead of RDBError to return
Signed-off-by: zhangyue <zy675793960@yeah.net>
This commit is contained in:
parent
fa319f99bb
commit
de3bd20fe3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user