feat(lsm): require changes to be committed before writing to persistent
storage
This commit is contained in:
parent
d64fec048f
commit
3dce25239b
7 changed files with 67 additions and 20 deletions
|
|
@ -159,6 +159,15 @@ lsm_error lsm_store_open_read(lsm_entry_handle **out, lsm_store *store,
|
|||
lsm_error lsm_store_open_write(lsm_entry_handle **out, lsm_store *store,
|
||||
const lsm_str *key);
|
||||
|
||||
/**
|
||||
* Commit any changes to the persistent storage. Any changes, insertions or
|
||||
* deletions that occured without a commit are reverted when the handle is
|
||||
* closed.
|
||||
*
|
||||
* @param handle handle to the entry
|
||||
*/
|
||||
lsm_error lsm_entry_commit(lsm_entry_handle *handle);
|
||||
|
||||
/**
|
||||
* Close an open entry handle.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue