From 0dfa7bcfac3ef8abc069d33eff822297a8541dbf Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 22 Jan 2020 12:27:31 -0500 Subject: [PATCH] rados: add missing doc comment for OpenIOContext function Signed-off-by: John Mulligan --- rados/conn.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rados/conn.go b/rados/conn.go index 4ae2dc8..b154657 100644 --- a/rados/conn.go +++ b/rados/conn.go @@ -82,6 +82,11 @@ func (c *Conn) ReadDefaultConfigFile() error { 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) { c_pool := C.CString(pool) defer C.free(unsafe.Pointer(c_pool))