Update PartLog.cpp

This commit is contained in:
Alexey Milovidov 2023-04-21 15:03:55 +03:00 committed by Jianfei Hu
parent bd4df60df6
commit c0ac6484c3

View File

@ -231,10 +231,10 @@ bool PartLog::addNewParts(
elem.table_name = table_id.table_name; elem.table_name = table_id.table_name;
elem.table_uuid = table_id.uuid; elem.table_uuid = table_id.uuid;
elem.partition_id = part->info.partition_id; elem.partition_id = part->info.partition_id;
FormatSettings format_settings; {
WriteBufferFromOwnString out; WriteBufferFromString out(elem.partition);
part->partition.serializeText(part->storage, out, format_settings); part->partition.serializeText(part->storage, out, {});
elem.partition = out.str(); }
elem.part_name = part->name; elem.part_name = part->name;
elem.disk_name = part->getDataPartStorage().getDiskName(); elem.disk_name = part->getDataPartStorage().getDiskName();
elem.path_on_disk = part->getDataPartStorage().getFullPath(); elem.path_on_disk = part->getDataPartStorage().getFullPath();