761417898 commented on code in PR #345:
URL: https://github.com/apache/tsfile/pull/345#discussion_r1900356410
##########
cpp/src/file/tsfile_io_writer.cc:
##########
@@ -84,13 +93,13 @@ int TsFileIOWriter::start_file() {
return ret;
}
-int TsFileIOWriter::start_flush_chunk_group(const std::string &device_name,
- bool is_aligned) {
+int TsFileIOWriter::start_flush_chunk_group(
+ std::shared_ptr<IDeviceID> device_name, bool is_aligned) {
int ret = write_byte(CHUNK_GROUP_HEADER_MARKER);
if (ret != common::E_OK) {
return ret;
}
- ret = write_string(device_name);
+ device_name->serialize(write_stream_);
Review Comment:
fixed
--
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]