We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c023bc + 8f2d776 commit 585a0bbCopy full SHA for 585a0bb
1 file changed
src/update_engine/extent_writer.cc
@@ -18,7 +18,7 @@ bool DirectExtentWriter::Write(const void* bytes, size_t count) {
18
return true;
19
const char* c_bytes = reinterpret_cast<const char*>(bytes);
20
size_t bytes_written = 0;
21
- while (count - bytes_written > 0) {
+ while (bytes_written < count) {
22
TEST_AND_RETURN_FALSE(next_extent_index_ < extents_.size());
23
uint64_t bytes_remaining_next_extent =
24
extents_[next_extent_index_].num_blocks() * block_size_ -
0 commit comments