mirror of https://github.com/ByConity/ByConity
fix(clickhousech@m-5285220418): [cp cnch-2.2] minor fix coredump of SystemLog
See merge request: !25244
This commit is contained in:
parent
a189add9c6
commit
41fac7b825
|
@ -199,6 +199,12 @@ public:
|
||||||
const String & storage_def_,
|
const String & storage_def_,
|
||||||
size_t flush_interval_milliseconds_);
|
size_t flush_interval_milliseconds_);
|
||||||
|
|
||||||
|
/// destructor is necessary to stop flush thread before deleting member variable `saving_thread`
|
||||||
|
~SystemLog() override
|
||||||
|
{
|
||||||
|
shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
/** Append a record into log.
|
/** Append a record into log.
|
||||||
* Writing to table will be done asynchronously and in case of failure, record could be lost.
|
* Writing to table will be done asynchronously and in case of failure, record could be lost.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1526,8 +1526,8 @@ String ColumnPruningVisitor::selectColumnWithMinSize(NamesAndTypesList source_co
|
||||||
}
|
}
|
||||||
|
|
||||||
// tmp fix for 40113_lowcard_nullable_subcolumn
|
// tmp fix for 40113_lowcard_nullable_subcolumn
|
||||||
auto metadata_snapshot = storage->getInMemoryMetadata();
|
auto metadata_snapshot = storage->getInMemoryMetadataPtr();
|
||||||
const auto & columns_desc = metadata_snapshot.getColumns();
|
const auto & columns_desc = metadata_snapshot->getColumns();
|
||||||
source_columns.erase(
|
source_columns.erase(
|
||||||
std::remove_if(
|
std::remove_if(
|
||||||
source_columns.begin(),
|
source_columns.begin(),
|
||||||
|
|
Loading…
Reference in New Issue