Write options is passed to store operations that can update the store to specify non-default behavior relating to operation durability and timeouts.
Creates and initializes a write options structure to be used for write operations.
- Parameters
-
[in] | durability | The durability policy used for the write options, if NULL the default durability is used. |
[in] | timeout_ms | The time, specified in milliseconds, allowed for processing the operation. If zero, the default request timeout is used. |
[out] | optionsp | The output write options handle. |
- Returns
- KV_SUCCESS on success, and an error code (a negative number) on failure.
Releases the resources use by the write options structure.
- Parameters
-
[in] | optionsp | The pointer to the write options handle to release. |