1
0
Fork 0

do not crash on empty followers list (#6374)

This commit is contained in:
Jan 2018-09-05 16:52:09 +02:00 committed by Michael Hackstein
parent 2a4e327d8c
commit 2478e5ae18
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ static void ReportOffSync(
auto const& c = counters[s.first];
if (c.insync) {
ReportShardNoProgress(s.first, s.second, aliases, result);
} else {
} else if (!c.followers.empty()) {
ReportShardNoProgress(s.first, c.followers, aliases, result);
}
}