|
|
@ -118,10 +118,12 @@ class WritableFileWriter { |
|
|
|
// Actually written data size can be used for truncate
|
|
|
|
// Actually written data size can be used for truncate
|
|
|
|
// not counting padding data
|
|
|
|
// not counting padding data
|
|
|
|
uint64_t filesize_; |
|
|
|
uint64_t filesize_; |
|
|
|
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
// This is necessary when we use unbuffered access
|
|
|
|
// This is necessary when we use unbuffered access
|
|
|
|
// and writes must happen on aligned offsets
|
|
|
|
// and writes must happen on aligned offsets
|
|
|
|
// so we need to go back and write that page again
|
|
|
|
// so we need to go back and write that page again
|
|
|
|
uint64_t next_write_offset_; |
|
|
|
uint64_t next_write_offset_; |
|
|
|
|
|
|
|
#endif // ROCKSDB_LITE
|
|
|
|
bool pending_sync_; |
|
|
|
bool pending_sync_; |
|
|
|
uint64_t last_sync_size_; |
|
|
|
uint64_t last_sync_size_; |
|
|
|
uint64_t bytes_per_sync_; |
|
|
|
uint64_t bytes_per_sync_; |
|
|
@ -135,7 +137,9 @@ class WritableFileWriter { |
|
|
|
buf_(), |
|
|
|
buf_(), |
|
|
|
max_buffer_size_(options.writable_file_max_buffer_size), |
|
|
|
max_buffer_size_(options.writable_file_max_buffer_size), |
|
|
|
filesize_(0), |
|
|
|
filesize_(0), |
|
|
|
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
next_write_offset_(0), |
|
|
|
next_write_offset_(0), |
|
|
|
|
|
|
|
#endif // ROCKSDB_LITE
|
|
|
|
pending_sync_(false), |
|
|
|
pending_sync_(false), |
|
|
|
last_sync_size_(0), |
|
|
|
last_sync_size_(0), |
|
|
|
bytes_per_sync_(options.bytes_per_sync), |
|
|
|
bytes_per_sync_(options.bytes_per_sync), |
|
|
|