Commit cb0634ef authored by UncP's avatar UncP Committed by zhangjinpeng1987

update rocksdb with a fix (#201)

parent 50e370f1
...@@ -239,6 +239,9 @@ Status WritableFileWriter::Close() { ...@@ -239,6 +239,9 @@ Status WritableFileWriter::Close() {
// we need to let the file know where data ends. // we need to let the file know where data ends.
if (use_direct_io()) { if (use_direct_io()) {
interim = writable_file_->Truncate(filesize_); interim = writable_file_->Truncate(filesize_);
if (interim.ok()) {
interim = writable_file_->Fsync();
}
if (!interim.ok() && s.ok()) { if (!interim.ok() && s.ok()) {
s = interim; s = interim;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment