mirror of https://github.com/ceph/go-ceph
rados: fix incorrect doc comment for ListXattrs function
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
bcec1ab9c1
commit
90cd306e99
|
@ -322,9 +322,8 @@ func (ioctx *IOContext) SetXattr(object string, name string, data []byte) error
|
||||||
return getRadosError(int(ret))
|
return getRadosError(int(ret))
|
||||||
}
|
}
|
||||||
|
|
||||||
// function that lists all the xattrs for an object, since xattrs are
|
// ListXattrs lists all the xattrs for an object. The xattrs are returned as a
|
||||||
// a k-v pair, this function returns a map of k-v pairs on
|
// mapping of string keys and byte-slice values.
|
||||||
// success, error code on failure
|
|
||||||
func (ioctx *IOContext) ListXattrs(oid string) (map[string][]byte, error) {
|
func (ioctx *IOContext) ListXattrs(oid string) (map[string][]byte, error) {
|
||||||
c_oid := C.CString(oid)
|
c_oid := C.CString(oid)
|
||||||
defer C.free(unsafe.Pointer(c_oid))
|
defer C.free(unsafe.Pointer(c_oid))
|
||||||
|
|
Loading…
Reference in New Issue