mirror of https://github.com/ceph/go-ceph
rbd: the length of args on create_v3 should be 3 instead of 2
Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
This commit is contained in:
parent
dba6a108d6
commit
19439f3958
|
@ -152,7 +152,7 @@ func Create(ioctx *rados.IOContext, name string, size uint64, order int,
|
|||
defer C.free(unsafe.Pointer(c_name))
|
||||
|
||||
switch len(args) {
|
||||
case 2:
|
||||
case 3:
|
||||
ret = C.rbd_create3(C.rados_ioctx_t(ioctx.Pointer()),
|
||||
c_name, C.uint64_t(size),
|
||||
C.uint64_t(args[0]), &c_order,
|
||||
|
|
Loading…
Reference in New Issue