aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/commit.h2
-rw-r--r--include/main.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/commit.h b/include/commit.h
index 7013bb1..2e16571 100644
--- a/include/commit.h
+++ b/include/commit.h
@@ -3,7 +3,7 @@
#include "common.h"
void nfl_commit_init();
-void nfl_commit_worker(nfl_header_t *header, nfl_entry_t *store,
+int nfl_commit_worker(nfl_header_t *header, nfl_entry_t *store,
enum nfl_compression_t compression_opt,
bool truncate,
const char *filename);
diff --git a/include/main.h b/include/main.h
index 64ed558..417c6bc 100644
--- a/include/main.h
+++ b/include/main.h
@@ -133,9 +133,18 @@ typedef struct __attribute__((packed)) _nfl_entry_t {
/* size: 24, cachelines: 1, members: 8 */
} nfl_entry_t;
+typedef struct _store_manager_t {
+ uint32_t *trunk_size_map;
+
+} nfl_store_manager_t;
+
typedef struct _nfl_global_t {
sem_t *nfl_commit_queue;
uint16_t nfl_group_id;
+
+ uint32_t nfl_storage_consumed;
+ pthread_mutex_t nfl_storage_consumed_lock;
+
const char *storage_dir;
enum nfl_compression_t compression_opt;
} nfl_global_t;