rados: fix incorrect doc comments on Unlock & BreakLock

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-01-22 14:08:56 -05:00 committed by John Mulligan
parent f6a143f24f
commit b1740e9680
1 changed files with 2 additions and 2 deletions

View File

@ -768,7 +768,7 @@ func (ioctx *IOContext) LockShared(oid, name, cookie, tag, desc string, duration
}
}
// Release a shared or exclusive lock on an object.
// Unlock releases a shared or exclusive lock on an object.
func (ioctx *IOContext) Unlock(oid, name, cookie string) (int, error) {
c_oid := C.CString(oid)
c_name := C.CString(name)
@ -853,7 +853,7 @@ func (ioctx *IOContext) ListLockers(oid, name string) (*LockInfo, error) {
return &LockInfo{int(ret), c_exclusive == 1, C.GoString(c_tag), splitCString(c_clients, c_clients_len), splitCString(c_cookies, c_cookies_len), splitCString(c_addrs, c_addrs_len)}, nil
}
// Releases a shared or exclusive lock on an object, which was taken by the specified client.
// BreakLock releases a shared or exclusive lock on an object, which was taken by the specified client.
func (ioctx *IOContext) BreakLock(oid, name, client, cookie string) (int, error) {
c_oid := C.CString(oid)
c_name := C.CString(name)