Skip to content

Commit 0e3aaa3

Browse files
YDB FQ: Refactor MySQL parser (#6484)
1 parent dd1b532 commit 0e3aaa3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ydb/core/fq/libs/actors/database_resolver.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,12 @@ class TDatabaseResolver: public TActor<TDatabaseResolver>
478478
continue;
479479
}
480480

481+
const auto& servicesArray = hostMap.at("services").GetArraySafe();
482+
481483
// check if all services of a particular host are alive
482484
const bool alive = std::all_of(
483-
hostMap.at("services").GetArraySafe().begin(),
484-
hostMap.at("services").GetArraySafe().end(),
485+
servicesArray.begin(),
486+
servicesArray.end(),
485487
[](const auto& service) {
486488
return service["health"].GetString() == "ALIVE";
487489
}

0 commit comments

Comments
 (0)