feat(lsm): require changes to be committed before writing to persistent

storage
This commit is contained in:
Jef Roosens 2024-08-27 17:00:12 +02:00
parent d64fec048f
commit 3dce25239b
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
7 changed files with 67 additions and 20 deletions

View file

@ -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.
*