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: v10.2.3~141^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c7abcbfe58f77d9d915dd2fc2fc4c75883d46c1;p=ceph.git librados: Added declaration for rados_aio_get_version Was missing from librados.h and hence had an incorrect visability. Fixes: #15535 (cherry picked from commit a5a1c1732e50be7d27f8742e794eba88d35c1c7f) --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 44373ffb4438..9eff2b24c186 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1818,6 +1818,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 *