fix(lsm): store data len in db; fix bug

This commit is contained in:
Jef Roosens 2023-11-08 16:04:21 +01:00
parent ef33825b7b
commit 9c03a36aa2
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 25 additions and 3 deletions

View file

@ -91,6 +91,14 @@ typedef struct lsm_store lsm_store;
*/
lsm_error lsm_store_init(lsm_store **ptr);
/**
* Return how many elements are stored in the trie.
*
* @param store store to use
* @return how many elements are in the store
*/
uint64_t lsm_store_size(lsm_store *store);
/**
* Open the given database file and load it into a new store object.
*