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:
Vicente Cheng 2016-12-20 19:24:31 +08:00
parent dba6a108d6
commit 19439f3958
1 changed files with 1 additions and 1 deletions

View File

@ -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,