Skip to content

Commit 547e34e

Browse files
committed
Fix tidy build
1 parent 2f7d37e commit 547e34e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/Storages/ObjectStorageQueue/ObjectStorageQueueOrderedFileMetadata.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ bool ObjectStorageQueueOrderedFileMetadata::getMaxProcessedFilesByHive(
202202
Strings paths;
203203
for (const auto & hive_partition : hives)
204204
{
205-
std::string file_path;
206205
std::filesystem::path node_path = processed_node_path_;
207206
node_path /= hive_partition;
208207
paths.push_back(node_path.string());
@@ -550,17 +549,17 @@ void ObjectStorageQueueOrderedFileMetadata::prepareProcessedRequestsImpl(Coordin
550549
prepareProcessedRequests(requests, zk_client, processed_node_path, /* ignore_if_exists */false);
551550
}
552551

553-
void ObjectStorageQueueOrderedFileMetadata::prepareHiveProcessedMap(HiveLastProcessedFileInfoMap & file_name)
552+
void ObjectStorageQueueOrderedFileMetadata::prepareHiveProcessedMap(HiveLastProcessedFileInfoMap & file_map)
554553
{
555554
std::string hive_part(getHivePart(node_metadata.file_path));
556555
std::filesystem::path node_path = processed_node_path;
557556
node_path /= hive_part;
558557

559-
auto file_info = file_name.find(node_path.string());
560-
if (file_info == file_name.end())
558+
auto file_info = file_map.find(node_path.string());
559+
if (file_info == file_map.end())
561560
{
562561
const auto zk_client = getZooKeeper();
563-
file_name[node_path.string()] = {zk_client->exists(node_path), node_metadata.file_path};
562+
file_map[node_path.string()] = {zk_client->exists(node_path), node_metadata.file_path};
564563
}
565564
else
566565
{

src/Storages/VirtualColumnUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ std::string_view findHivePartitioningInPath(const String & path)
193193

194194
// All keys and values are string_view over 'path', so starts and ends must be inside 'path'
195195
auto kv = key_values.begin();
196-
auto start = kv->first.data();
197-
auto end = kv->second.data() + kv->second.size();
196+
const auto * start = kv->first.data();
197+
const auto * end = kv->second.data() + kv->second.size();
198198
++kv;
199199
while (kv != key_values.end())
200200
{

0 commit comments

Comments
 (0)