#include <memory>
#include "db/log_format.h"
+#include "rocksdb/io_status.h"
#include "rocksdb/slice.h"
#include "rocksdb/status.h"
~Writer();
- Status AddRecord(const Slice& slice);
+ IOStatus AddRecord(const Slice& slice);
WritableFileWriter* file() { return dest_.get(); }
const WritableFileWriter* file() const { return dest_.get(); }
uint64_t get_log_number() const { return log_number_; }
- Status WriteBuffer();
+ IOStatus WriteBuffer();
- Status Close();
+ IOStatus Close();
bool TEST_BufferIsEmpty();
// record type stored in the header.
uint32_t type_crc_[kMaxRecordType + 1];
- Status EmitPhysicalRecord(RecordType type, const char* ptr, size_t length);
+ IOStatus EmitPhysicalRecord(RecordType type, const char* ptr, size_t length);
// If true, it does not flush after each write. Instead it relies on the upper
// layer to manually does the flush by calling ::WriteBuffer()