kv_create_delete_op()

#include <kvstore.h>

kv_error_t 
kv_create_delete_op(kv_operations_t *list,
                    const kv_key_t *key,
                    kv_int_t abort_on_failure) 

Creates a simple delete operation suitable for use as part of a multi-step operation to be run using kv_execute(). The semantics of the returned operation when executed are identical to that of kv_delete().

Parameters

  • list

    The list parameter is the operation sequence to which this delete operation is appended. The list is allocated using kv_create_operations().

  • key

    The key parameter identifies the Key portion of the record to be deleted.

    Note that all of the operations performed under a single call to kv_execute() must share the same major key path, and that major key path must be complete.

  • abort_on_failure

    The abort_on_failure parameter indicates whether the entire operation should abort if this delete operation fails. Specify 1 if you want the operation to abort upon deletion failure.