diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-09 17:10:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 17:10:39 +0200 |
commit | ecc7310a9642618c67acf5551eb6aef740313571 (patch) | |
tree | 5648646d515455e475e50ae67aa2bed671e099b7 /src | |
parent | 0a5b58a0f9a2c907092c6420312bda030beccb73 (diff) | |
parent | 5183b6fd34e4a9a5443406e801ec70139e68c471 (diff) | |
download | vyatta-cfg-ecc7310a9642618c67acf5551eb6aef740313571.tar.gz vyatta-cfg-ecc7310a9642618c67acf5551eb6aef740313571.zip |
Merge pull request #77 from HollyGurza/T6206
configdep: T6206 fix marker for last element of delete priority queues
Diffstat (limited to 'src')
-rw-r--r-- | src/commit/commit-algorithm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp index ab7eee6..a84fdf5 100644 --- a/src/commit/commit-algorithm.cpp +++ b/src/commit/commit-algorithm.cpp @@ -1308,6 +1308,8 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2) TRACE_INIT("Processing the Priority Queue"); clear_last(); int num = pq.size(); + // decrease by one because we have one root element + --num; while (!dpq.empty()) { PrioNode *p = dpq.top(); set_if_last(num+dpq.size()); |