feat(lsm): store data files in nested subdirectories
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Jef Roosens 2023-11-18 21:21:57 +01:00
parent d3652f801c
commit d2afb98268
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 109 additions and 39 deletions

View file

@ -7,6 +7,8 @@
#include "lsm.h"
#include "lsm/str.h"
#define LSM_STORE_DATA_LEVELS 3
/**
* A handle referencing an entry inside a store. Read/write operations from/to
* the entry go through this handle.
@ -155,7 +157,7 @@ lsm_error lsm_store_open_read(lsm_entry_handle **out, lsm_store *store,
* @param key key to search
*/
lsm_error lsm_store_open_write(lsm_entry_handle **out, lsm_store *store,
const lsm_str *key);
const lsm_str *key);
/**
* Close an open entry handle.