Skip to content

Commit

Permalink
Merge pull request ceph#9458 from jimwright/master
Browse files Browse the repository at this point in the history
librados: Added declaration for rados_aio_get_version

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Jun 2, 2016
2 parents c34342b + a5a1c17 commit f92e8d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/include/rados/librados.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit f92e8d0

Please sign in to comment.