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_OBJECTThe index parameter is out of range.
-
KV_OP_DELETEThe operation was created using kv_create_delete_op().
-
KV_OP_DELETE_IF_VERSIONThe operation was created using kv_create_delete_with_options_op().
-
KV_OP_PUTThe operation was created using kv_create_put_op().
-
KV_OP_PUT_WITH_OPTIONSThe 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.