about summary refs log tree commit homepage
path: root/lib/PublicInbox/OverIdx.pm
diff options
authorEric Wong <e@yhbt.net>2020-07-14 02:14:32 +0000
committerEric Wong <e@yhbt.net>2020-07-14 23:23:03 +0000
commitf06e84220e5566e74c4af675a7afaf1636b024e4 (patch)
tree9ce2bb6cf147c24cb346ab3f36f53751863cec68 /lib/PublicInbox/OverIdx.pm
parent322a79a6421b5993775f63ea25294a97c5203ac0 (diff)
over+msgmap: do not store filename after DBI->connect
SQLite already knows the filename internally, so avoid having it
as a long-lived Perl SV to save some bytes when there's many
inboxes and open DBs.
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm
index 13aa2d74..ea8da723 100644
--- a/lib/PublicInbox/OverIdx.pm
+++ b/lib/PublicInbox/OverIdx.pm
@@ -431,7 +431,7 @@ sub rollback_lazy {
 sub disconnect {
         my ($self) = @_;
         die "in transaction" if $self->{txn};
-        $self->{dbh} = undef;
+        $self->SUPER::disconnect;
 sub create {