From a5a1c1732e50be7d27f8742e794eba88d35c1c7f Mon Sep 17 00:00:00 2001 From: Jim Wright Date: Thu, 2 Jun 2016 15:12:30 +0100 Subject: [PATCH] librados: Added declaration for rados_aio_get_version Was missing from librados.h and hence had an incorrect visability. Fixes: #15535 --- src/include/rados/librados.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 * -- 2.47.3