mirror of https://github.com/ceph/go-ceph
rados: naming conventions: fixes in Truncate 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
3a7c059e82
commit
e7cdc8fa68
|
@ -216,10 +216,10 @@ func (ioctx *IOContext) Delete(oid string) error {
|
||||||
// operation shrinks the object, the excess data is removed. It returns an
|
// operation shrinks the object, the excess data is removed. It returns an
|
||||||
// error, if any.
|
// error, if any.
|
||||||
func (ioctx *IOContext) Truncate(oid string, size uint64) error {
|
func (ioctx *IOContext) Truncate(oid string, size uint64) error {
|
||||||
c_oid := C.CString(oid)
|
coid := C.CString(oid)
|
||||||
defer C.free(unsafe.Pointer(c_oid))
|
defer C.free(unsafe.Pointer(coid))
|
||||||
|
|
||||||
return getError(C.rados_trunc(ioctx.ioctx, c_oid, (C.uint64_t)(size)))
|
return getError(C.rados_trunc(ioctx.ioctx, coid, (C.uint64_t)(size)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destroy informs librados that the I/O context is no longer in use.
|
// Destroy informs librados that the I/O context is no longer in use.
|
||||||
|
|
Loading…
Reference in New Issue