Skip to content

Commit

Permalink
n [fix](HDFS) Correctly set hdfs cache allocator's offset (#33960)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteYue authored Apr 22, 2024
1 parent a36a369 commit 8e5369c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/io/fs/hdfs_file_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Status HdfsFileWriter::_append(std::string_view content) {
}
size_t append_size = _batch_buffer.append(content);
content.remove_prefix(append_size);
_bytes_appended += append_size;
if (_batch_buffer.full()) {
RETURN_IF_ERROR(_flush_buffer());
}
Expand All @@ -240,7 +241,6 @@ Status HdfsFileWriter::appendv(const Slice* data, size_t data_cnt) {

for (size_t i = 0; i < data_cnt; i++) {
RETURN_IF_ERROR(_append({data[i].get_data(), data[i].get_size()}));
_bytes_appended += data[i].get_size();
}
return Status::OK();
}
Expand Down

0 comments on commit 8e5369c

Please sign in to comment.