kv_lob_get_version()

#include <kvstore.h>

kv_error_t 
kv_lob_get_version(kv_lob_handle_t *handle,
                   kv_version_t **version); 

Returns the record's version. The version is owned by the handle and must not be released independently of the handle. If no version is available, KV_INVALID_ARGUMENT is returned.

The record's version is available immediately upon handle creation using kv_lob_get_for_read(). If kv_lob_get_for_write() is used, the version is available only after the LOB has been written to the store (using kv_lob_put_from_file()).

Parameters

handle

The handle parameter is the LOB handle from which you want to retrieve the record's version.

version

The version parameter references memory into which the value is copied. Release the resources used by this value using kv_release_version().

See Also

Data Operations and Related Functions