kv_result_get_version()
#include <kvstore.h>
kv_error_t
kv_result_get_version(const kv_operation_results_t *res,
kv_int_t index,
const kv_version_t **version)
Returns the value's version. The version information is stored at the identified index in the results list as a consequence of successfully executing either kv_create_put_op() or kv_create_put_with_options_op(). If the index parameter is out of range, this function returns KV_NO_SUCH_OBJECT.
Parameters
-
res
The res parameter is the operation results list that contains the version information you want to examine.
-
index
The index parameter is the index in the results list which holds the information you want to retrieve.
-
version
The version parameter references memory to which is copied the version information. Release the resources used by this value using kv_release_version().