mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 22:24:03 +00:00
rados: naming conventions: fixes in WriteFull 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
b7b21273e3
commit
402707f2f5
@ -157,10 +157,10 @@ func (ioctx *IOContext) Write(oid string, data []byte, offset uint64) error {
|
|||||||
// The object is filled with the provided data. If the object exists,
|
// The object is filled with the provided data. If the object exists,
|
||||||
// it is atomically truncated and then written. It returns an error, if any.
|
// it is atomically truncated and then written. It returns an error, if any.
|
||||||
func (ioctx *IOContext) WriteFull(oid string, data []byte) error {
|
func (ioctx *IOContext) WriteFull(oid string, data []byte) error {
|
||||||
c_oid := C.CString(oid)
|
coid := C.CString(oid)
|
||||||
defer C.free(unsafe.Pointer(c_oid))
|
defer C.free(unsafe.Pointer(coid))
|
||||||
|
|
||||||
ret := C.rados_write_full(ioctx.ioctx, c_oid,
|
ret := C.rados_write_full(ioctx.ioctx, coid,
|
||||||
(*C.char)(unsafe.Pointer(&data[0])),
|
(*C.char)(unsafe.Pointer(&data[0])),
|
||||||
(C.size_t)(len(data)))
|
(C.size_t)(len(data)))
|
||||||
return getError(ret)
|
return getError(ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user