mirror of
https://github.com/ceph/go-ceph
synced 2025-03-04 10:28:17 +00:00
rbd: naming conventions: fixes in LockExclusive, LockShared functions
Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
05538bceab
commit
70db71e0b6
16
rbd/rbd.go
16
rbd/rbd.go
@ -649,10 +649,10 @@ func (image *Image) LockExclusive(cookie string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
c_cookie := C.CString(cookie)
|
||||
defer C.free(unsafe.Pointer(c_cookie))
|
||||
cCookie := C.CString(cookie)
|
||||
defer C.free(unsafe.Pointer(cCookie))
|
||||
|
||||
return getError(C.rbd_lock_exclusive(image.image, c_cookie))
|
||||
return getError(C.rbd_lock_exclusive(image.image, cCookie))
|
||||
}
|
||||
|
||||
// LockShared acquires a shared lock on the rbd image.
|
||||
@ -664,12 +664,12 @@ func (image *Image) LockShared(cookie string, tag string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
c_cookie := C.CString(cookie)
|
||||
c_tag := C.CString(tag)
|
||||
defer C.free(unsafe.Pointer(c_cookie))
|
||||
defer C.free(unsafe.Pointer(c_tag))
|
||||
cCookie := C.CString(cookie)
|
||||
cTag := C.CString(tag)
|
||||
defer C.free(unsafe.Pointer(cCookie))
|
||||
defer C.free(unsafe.Pointer(cTag))
|
||||
|
||||
return getError(C.rbd_lock_shared(image.image, c_cookie, c_tag))
|
||||
return getError(C.rbd_lock_shared(image.image, cCookie, cTag))
|
||||
}
|
||||
|
||||
// Unlock releases a lock on the image.
|
||||
|
Loading…
Reference in New Issue
Block a user