mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
clickhouse: probably fixed undefined behavior in Chunks storage [#CONV-6705].
This commit is contained in:
parent
a05cfab085
commit
7aee5959e5
@ -288,7 +288,6 @@ void StorageLog::loadMarks()
|
||||
|
||||
size_t StorageLog::marksCount()
|
||||
{
|
||||
loadMarks();
|
||||
return files.begin()->second.marks.size();
|
||||
}
|
||||
|
||||
@ -363,10 +362,11 @@ BlockInputStreams StorageLog::read(
|
||||
size_t max_block_size,
|
||||
unsigned threads)
|
||||
{
|
||||
loadMarks();
|
||||
return read(0, marksCount(), column_names, query, settings, processed_stage, max_block_size, threads);
|
||||
}
|
||||
|
||||
|
||||
|
||||
BlockOutputStreamPtr StorageLog::write(
|
||||
ASTPtr query)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user