mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Enabling -Wshadow [#CLICKHOUSE-2]
This commit is contained in:
parent
f7796df158
commit
050a080be3
@ -141,12 +141,10 @@ struct ConfigReloader::FileWithTimestamp
|
||||
};
|
||||
|
||||
|
||||
void ConfigReloader::FilesChangesTracker::addIfExists(const std::string & path)
|
||||
void ConfigReloader::FilesChangesTracker::addIfExists(const std::string & path_to_add)
|
||||
{
|
||||
if (!path.empty() && Poco::File(path).exists())
|
||||
{
|
||||
files.emplace(path, Poco::File(path).getLastModified().epochTime());
|
||||
}
|
||||
if (!path_to_add.empty() && Poco::File(path_to_add).exists())
|
||||
files.emplace(path_to_add, Poco::File(path_to_add).getLastModified().epochTime());
|
||||
}
|
||||
|
||||
bool ConfigReloader::FilesChangesTracker::isDifferOrNewerThan(const FilesChangesTracker & rhs)
|
||||
|
@ -56,7 +56,7 @@ private:
|
||||
{
|
||||
std::set<FileWithTimestamp> files;
|
||||
|
||||
void addIfExists(const std::string & path);
|
||||
void addIfExists(const std::string & path_to_add);
|
||||
bool isDifferOrNewerThan(const FilesChangesTracker & rhs);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user