kv_operation_get_type()
#include <kvstore.h>
kv_operation_enum
kv_operation_get_type(const kv_operations_t *operations,
kv_int_t index)
Returns the type of operation being performed in a particular step in an operation sequence. This function can return one of the following values:
-
KV_NO_SUCH_OBJECT
The index parameter is out of range.
-
KV_OP_DELETE
The operation was created using kv_create_delete_op().
-
KV_OP_DELETE_IF_VERSION
The operation was created using kv_create_delete_with_options_op().
-
KV_OP_PUT
The operation was created using kv_create_put_op().
-
KV_OP_PUT_WITH_OPTIONS
The operation was created using kv_create_put_with_options_op().
Parameters
-
operations
The operations parameter is the operation sequence to which the operation in question belongs.
-
index
The index parameter identifies the exact operation in the sequence that you want to examine.