Sharing lms->{dbh} with eidx shards appears to be the cause of
the "Issuing rollback() due to DESTROY without explicit
disconnect() of DBD::SQLite::db handle" messages I've been
seeing from "lei up".
$oidbin ? unpack('H*', $oidbin) : undef;
}
-# FIXME: something with "lei <up|q>" is causing uncommitted transaction
-# warnings, not sure what...
+# FIXED? something with "lei <up|q>" is causing uncommitted transaction
+# TODO: remove soon
sub DESTROY {
my ($self) = @_;
my $dbh = delete($self->{dbh}) or return;
return if $dbh->{ReadOnly};
- use Carp;
undef $dbh;
warn "BUG $$ $0 $self {dbh} OPEN ppid=".getppid.' '.Carp::longmess();
}
sub _lms_rw ($) {
my ($self) = @_;
+ my ($eidx, $tl) = eidx_init($self);
$self->{lms} //= do {
require PublicInbox::LeiMailSync;
my $f = "$self->{priv_eidx}->{topdir}/mail_sync.sqlite3";