From: Josh Durgin Date: Mon, 3 Feb 2014 19:46:59 +0000 (-0800) Subject: librados: add section docs for object operations X-Git-Tag: v0.78~154^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e255bf58130705dd8563c7f531de01d8615964f9;p=ceph.git librados: add section docs for object operations The doxygen end section of watch notify was accidentally moved when these were added, so fix that at the same time. Signed-off-by: Josh Durgin --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 7dd1748da243..3ef2ffcf44ed 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1683,7 +1683,22 @@ int rados_unwatch(rados_ioctx_t io, const char *o, uint64_t handle); */ int rados_notify(rados_ioctx_t io, const char *o, uint64_t ver, const char *buf, int buf_len); -/** @} Atomic write operations */ +/** @} Watch/Notify */ + +/** + * @defgroup librados_h_obj_op Object Operations + * + * A single rados operation can do multiple operations on one object + * atomicly. The whole operation will suceed or fail, and no partial + * results will be visible. + * + * Operations may be either reads, which can return data, or writes, + * which cannot. The effects of writes are applied and visible all at + * once, so an operation that sets an xattr and then checks its value + * will not see the updated value. + * + * @{ + */ /** * Create a new rados_write_op_t write operation. This will store all actions @@ -1830,7 +1845,7 @@ int rados_aio_write_op_operate(rados_write_op_t write_op, time_t *mtime); -/** @} Watch/Notify */ +/** @} Object Operations */ /** * Take an exclusive lock on an object.