diff --git a/db/db_impl_write.cc b/db/db_impl_write.cc index b2f4c7e3a..6aa5003e4 100644 --- a/db/db_impl_write.cc +++ b/db/db_impl_write.cc @@ -163,10 +163,8 @@ Status DBImpl::WriteImpl(const WriteOptions& write_options, parallel = parallel && !writer->batch->HasMerge(); } - if (writer->ShouldWriteToWAL()) { - total_byte_size = WriteBatchInternal::AppendedByteSize( - total_byte_size, WriteBatchInternal::ByteSize(writer->batch)); - } + total_byte_size = WriteBatchInternal::AppendedByteSize( + total_byte_size, WriteBatchInternal::ByteSize(writer->batch)); } }