Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #854 from joyent/ether/v2-collapse-validation_resu…
Browse files Browse the repository at this point in the history
…lt-fix

go through pages in reverse
  • Loading branch information
karenetheridge authored Aug 8, 2019
2 parents 8521644 + 8b40a80 commit 85b727c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Conch/Command/merge_validation_results.pm
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ sub _process_device ($self, $device) {
->page(1)
->hri;

foreach my $page (1 .. $groups_to_merge_rs->pager->last_page) {
# we go through the pages backward so we can delete rows as we go and not
# break queries for the other pages.
foreach my $page (reverse(1 .. $groups_to_merge_rs->pager->last_page)) {
$groups_to_merge_rs = $groups_to_merge_rs->page($page);

# foreach matching set,
Expand Down

0 comments on commit 85b727c

Please sign in to comment.