From f6d77333b7ba1c6b521cb2a752dce79330e77762 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 22 Jan 2020 12:27:54 -0500 Subject: [PATCH] rados: fix and update doc comments for PGCommand funcs Signed-off-by: John Mulligan --- rados/conn.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/rados/conn.go b/rados/conn.go index b154657..0e1d098 100644 --- a/rados/conn.go +++ b/rados/conn.go @@ -329,11 +329,25 @@ func (c *Conn) monCommand(args, inputBuffer []byte) (buffer []byte, info string, } // PGCommand sends a command to one of the PGs +// +// Implements: +// int rados_pg_command(rados_t cluster, const char *pgstr, +// const char **cmd, size_t cmdlen, +// const char *inbuf, size_t inbuflen, +// char **outbuf, size_t *outbuflen, +// char **outs, size_t *outslen); func (c *Conn) PGCommand(pgid []byte, args [][]byte) (buffer []byte, info string, err error) { return c.pgCommand(pgid, args, nil) } -// PGCommand sends a command to one of the PGs, with an input buffer +// PGCommandWithInputBuffer sends a command to one of the PGs, with an input buffer +// +// Implements: +// int rados_pg_command(rados_t cluster, const char *pgstr, +// const char **cmd, size_t cmdlen, +// const char *inbuf, size_t inbuflen, +// char **outbuf, size_t *outbuflen, +// char **outs, size_t *outslen); func (c *Conn) PGCommandWithInputBuffer(pgid []byte, args [][]byte, inputBuffer []byte) (buffer []byte, info string, err error) { return c.pgCommand(pgid, args, inputBuffer) }