761417898 commented on code in PR #345:
URL: https://github.com/apache/tsfile/pull/345#discussion_r1897583050
##########
cpp/src/writer/tsfile_writer.cc:
##########
@@ -163,10 +172,12 @@ int TsFileWriter::register_timeseries(
return register_timeseries(device_id, ms, false);
}
-int TsFileWriter::register_timeseries(const std::string &device_id,
+int TsFileWriter::register_timeseries(const std::string &device_path,
MeasurementSchema *measurement_schema,
bool is_aligned) {
- DeviceSchemaIter device_iter = schemas_.find(device_id);
+ std::shared_ptr<IDeviceID> device_id =
+ std::make_shared<PlainDeviceID>(device_path);
+ DeviceSchemasMapIter device_iter = schemas_.find(device_id);
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]