Add logic short-circuit to avoid unnecessary bond rebuild logic when appropriate

This commit is contained in:
Joseph Henry 2022-09-01 15:16:21 -07:00
parent b6074da498
commit 0e23ba8f1a
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -980,6 +980,10 @@ void Bond::curateBond(int64_t now, bool rebuildBond)
dumpInfo(now, true);
}
if (! _numAliveLinks && ! _numTotalLinks) {
return;
}
/**
* Curate the set of paths that are part of the bond proper. Select a set of paths
* per logical link according to eligibility and user-specified constraints.