]> Sergey Matveev's repositories - public-inbox.git/commitdiff
scripts/dupe-finder: restore $dbh variable
authorKyle Meyer <kyle@kyleam.com>
Fri, 16 Oct 2020 02:08:52 +0000 (22:08 -0400)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 19:36:52 +0000 (19:36 +0000)
When dupe-finder was switched from ->search->{over_ro} to ->over, the
database handle was dropped.  Restore it because a spot downstream
uses it.

Fixes: 73e3a6ed6e95adc6 (use more idiomatic internal API for ->over access)
(cherry picked from commit 0438ee2b1a5fbeb587ee62aa3e267ec09d281bd9)

scripts/dupe-finder

index 7b490cbbc3fcc0c61f97c3e441b9a9d253ddc9de..deeb0d6f853510459d1b5ffd12c8c407d15d6b46 100644 (file)
@@ -22,6 +22,7 @@ if (index($repo, '@') > 0) {
 $ibx or die "No inbox";
 $ibx->search or die "search not available for inbox";
 my $over = $ibx->over;
+my $dbh = $over->dbh;
 
 sub emit ($) {
        my ($nums) = @_;