rados: add missing doc comment for OpenIOContext function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-01-22 12:27:31 -05:00 committed by John Mulligan
parent 65f2417c4c
commit 0dfa7bcfac
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ func (c *Conn) ReadDefaultConfigFile() error {
return getRadosError(int(ret)) return getRadosError(int(ret))
} }
// OpenIOContext creates and returns a new IOContext for the given pool.
//
// Implements:
// int rados_ioctx_create(rados_t cluster, const char *pool_name,
// rados_ioctx_t *ioctx);
func (c *Conn) OpenIOContext(pool string) (*IOContext, error) { func (c *Conn) OpenIOContext(pool string) (*IOContext, error) {
c_pool := C.CString(pool) c_pool := C.CString(pool)
defer C.free(unsafe.Pointer(c_pool)) defer C.free(unsafe.Pointer(c_pool))