fix(lsm): write in-memory data to disk when switching to file

This commit is contained in:
Jef Roosens 2023-10-29 12:33:07 +01:00
parent f44c512099
commit f19a8814f5
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 21 additions and 6 deletions

View file

@ -108,8 +108,9 @@ lsm_error lsm_store_open_read(lsm_entry_handle **out, lsm_store *store,
lsm_str *key);
/**
* Open a write handle to the given entry. This entry must be properly closed
* using `lsm_store_handle_close`.
* Open a write handle to the given entry. This handle should only be used for
* writing; read operations on this handle are unsupported. This entry must be
* properly closed using `lsm_store_handle_close`.
*
* @param out pointer to store handle pointer
* @param store store to retrieve entry from