From f06e84220e5566e74c4af675a7afaf1636b024e4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Jul 2020 02:14:32 +0000 Subject: 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. --- lib/PublicInbox/OverIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/OverIdx.pm') 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 { -- cgit v1.2.3-24-ge0c7