]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: Added declaration for rados_aio_get_version 9458/head
authorJim Wright <jim@quadraturecapital.com>
Thu, 2 Jun 2016 14:12:30 +0000 (15:12 +0100)
committerJim Wright <jim@quadraturecapital.com>
Thu, 2 Jun 2016 14:12:30 +0000 (15:12 +0100)
Was missing from librados.h and hence had an incorrect
visability.

Fixes: #15535
src/include/rados/librados.h

index 6932adbcc27701907e4cb8d2c9dfe15455ef3723..4c196424b63f7badcf8f4317f0d9ad060dbefba1 100644 (file)
@@ -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
  *