summaryrefslogtreecommitdiff
path: root/include/data_writer.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-16 23:13:42 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-18 22:44:39 +0200
commitcfe80ff9045f33375f11a285098fb15ce214372a (patch)
treecf70d1d5d29694392715c68c6d7b994d2005d6ea /include/data_writer.h
parentb45850388ea5505f4fd50cd659abe2f02aeca0b5 (diff)
Minor interface change to data writer
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/data_writer.h')
-rw-r--r--include/data_writer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/data_writer.h b/include/data_writer.h
index f384ce7..bd7532d 100644
--- a/include/data_writer.h
+++ b/include/data_writer.h
@@ -51,11 +51,12 @@ void data_writer_destroy(data_writer_t *data);
int data_writer_write_fragment_table(data_writer_t *data);
/*
- Compress and flush the current fragment buffer even if it is not full yet.
+ Wait for everything to be written to disk. This also forces a currently
+ pending fragment block to be compressed and wrtten.
Returns 0 on success, prints errors to stderr.
*/
-int data_writer_flush_fragments(data_writer_t *data);
+int data_writer_sync(data_writer_t *data);
/*
Read data from the given file descriptor, partition it into blocks and