From: Jim Wright Date: Thu, 2 Jun 2016 14:12:30 +0000 (+0100) Subject: librados: Added declaration for rados_aio_get_version X-Git-Tag: v11.0.0~342^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9458%2Fhead;p=ceph.git librados: Added declaration for rados_aio_get_version Was missing from librados.h and hence had an incorrect visability. Fixes: #15535 --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 6932adbcc277..4c196424b63f 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1856,6 +1856,22 @@ CEPH_RADOS_API int rados_aio_is_safe_and_cb(rados_completion_t c); */ CEPH_RADOS_API int rados_aio_get_return_value(rados_completion_t c); +/** + * Get the internal object version of the target of an asychronous operation + * + * The return value is set when the operation is complete or safe, + * whichever comes first. + * + * @pre The operation is safe or complete + * + * @note BUG: complete callback may never be called when the safe + * message is received before the complete message + * + * @param c async operation to inspect + * @returns version number of the asychronous operation's target + */ +CEPH_RADOS_API uint64_t rados_aio_get_version(rados_completion_t c); + /** * Release a completion *