diff options
author | Eric Wong <e@yhbt.net> | 2020-07-14 02:14:32 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-14 23:23:03 +0000 |
commit | f06e84220e5566e74c4af675a7afaf1636b024e4 (patch) | |
tree | 9ce2bb6cf147c24cb346ab3f36f53751863cec68 /t/nntpd.t | |
parent | 322a79a6421b5993775f63ea25294a97c5203ac0 (diff) | |
download | public-inbox-f06e84220e5566e74c4af675a7afaf1636b024e4.tar.gz |
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 't/nntpd.t')
-rw-r--r-- | t/nntpd.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -343,7 +343,7 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000 $im->add($ex); $im->done; { - my $f = $ibx->mm->{filename}; + my $f = $ibx->mm->{dbh}->sqlite_db_filename; my $tmp = "$tmpdir/tmp.sqlite3"; $ibx->mm->{dbh}->sqlite_backup_to_file($tmp); delete $ibx->{mm}; |