mirror of https://github.com/ceph/go-ceph
rbd: naming conventions: fixes in Trash function
Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
645fd2be49
commit
07df8d3338
|
@ -292,10 +292,10 @@ func (image *Image) Trash(delay time.Duration) error {
|
|||
return err
|
||||
}
|
||||
|
||||
c_name := C.CString(image.name)
|
||||
defer C.free(unsafe.Pointer(c_name))
|
||||
cName := C.CString(image.name)
|
||||
defer C.free(unsafe.Pointer(cName))
|
||||
|
||||
return getError(C.rbd_trash_move(cephIoctx(image.ioctx), c_name,
|
||||
return getError(C.rbd_trash_move(cephIoctx(image.ioctx), cName,
|
||||
C.uint64_t(delay.Seconds())))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue