Fix #11551, aab580e0a: Link graph job results were incorrectly applied (#11558)

Edge flows were incorrectly restricted because the restricted
instead of unrestricted last update date was checked

See also: #10314
This commit is contained in:
Jonathan G Rennison 2023-12-07 18:38:43 +00:00 committed by GitHub
parent 60565da8f9
commit 2cbe91c312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ LinkGraphJob::~LinkGraphJob()
* from the new flows. This avoids flow cycles between old and
* new flows. */
while (!erased.IsEmpty()) ge.flows.erase(erased.Pop());
} else if ((*lg)[node_id][dest_id].last_restricted_update == CalendarTime::INVALID_DATE) {
} else if ((*lg)[node_id][dest_id].last_unrestricted_update == CalendarTime::INVALID_DATE) {
/* Edge is fully restricted. */
flows.RestrictFlows(to);
}