mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Remove unnecessary const hinted by clang-tidy
Removing the reference for Index makes the const unnecessary. Constness for it is still preserved correctly because Columns are inmutable pointers to IColumn.
This commit is contained in:
parent
9002d4c751
commit
f6b19e143a
@ -340,7 +340,7 @@ IMergeTreeDataPart::~IMergeTreeDataPart()
|
||||
}
|
||||
|
||||
|
||||
const IMergeTreeDataPart::Index IMergeTreeDataPart::getIndex() const
|
||||
IMergeTreeDataPart::Index IMergeTreeDataPart::getIndex() const
|
||||
{
|
||||
std::scoped_lock lock(index_mutex);
|
||||
if (!index_loaded)
|
||||
|
@ -367,7 +367,7 @@ public:
|
||||
/// Version of part metadata (columns, pk and so on). Managed properly only for replicated merge tree.
|
||||
int32_t metadata_version;
|
||||
|
||||
const Index getIndex() const;
|
||||
Index getIndex() const;
|
||||
void setIndex(Index index_);
|
||||
void unloadIndex();
|
||||
|
||||
|
@ -999,7 +999,6 @@ MarkRanges MergeTreeDataSelectExecutor::markRangesFromPKRange(
|
||||
|
||||
size_t marks_count = part->index_granularity.getMarksCount();
|
||||
const auto & index = part->getIndex();
|
||||
|
||||
if (marks_count == 0)
|
||||
return res;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user