aboutsummaryrefslogtreecommitdiff
path: root/db/log_writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/log_writer.h')
-rw-r--r--db/log_writer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/log_writer.h b/db/log_writer.h
index a3a954d967..9e7cc4705b 100644
--- a/db/log_writer.h
+++ b/db/log_writer.h
@@ -22,6 +22,12 @@ class Writer {
// "*dest" must be initially empty.
// "*dest" must remain live while this Writer is in use.
explicit Writer(WritableFile* dest);
+
+ // Create a writer that will append data to "*dest".
+ // "*dest" must have initial length "dest_length".
+ // "*dest" must remain live while this Writer is in use.
+ Writer(WritableFile* dest, uint64_t dest_length);
+
~Writer();
Status AddRecord(const Slice& slice);