761417898 commented on code in PR #192:
URL: https://github.com/apache/tsfile/pull/192#discussion_r1712949789
##########
cpp/src/file/tsfile_io_writer.cc:
##########
@@ -198,9 +214,13 @@ int TsFileIOWriter::end_flush_chunk(Statistic
*chunk_statistic) {
}
int TsFileIOWriter::end_flush_chunk_group() {
- int ret = chunk_group_meta_list_.push_back(cur_chunk_group_meta_);
+ if (!chunk_group_meta_has_inited_) {
+ int ret = chunk_group_meta_list_.push_back(cur_chunk_group_meta_);
+ cur_chunk_group_meta_ = nullptr;
+ return ret;
+ }
cur_chunk_group_meta_ = nullptr;
- return ret;
+ return common::E_OK;
Review Comment:
The name chunk_group_meta_has_inited_ was a bit confusing, so I changed it
to use_prev_aloc_aligned_cgm and updated the related logic.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]