Skip to content

Commit ecc7310

Browse files
authored
Merge pull request #77 from HollyGurza/T6206
configdep: T6206 fix marker for last element of delete priority queues
2 parents 0a5b58a + 5183b6f commit ecc7310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commit/commit-algorithm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,8 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2)
13081308
TRACE_INIT("Processing the Priority Queue");
13091309
clear_last();
13101310
int num = pq.size();
1311+
// decrease by one because we have one root element
1312+
--num;
13111313
while (!dpq.empty()) {
13121314
PrioNode *p = dpq.top();
13131315
set_if_last(num+dpq.size());

0 commit comments

Comments
 (0)