I'm not 100% sure why, but "lei up" seems to cause uncommitted
transaction errors. LeiToMail calls sto->set_sync_info, but
LeiXSearch should call sto->done and lms_commit, so I'm not
sure where the uncommited transaction is coming from...
$dbh->do('DELETE FROM folders WHERE fid = ?', undef, $fid);
}
+# FIXME: something with "lei <up|q>" is causing uncommitted transaction
+# warnings, not sure what...
+sub DESTROY {
+ my ($self) = @_;
+ my $dbh = $self->{dbh} or return;
+ return if $dbh->{ReadOnly};
+ use Carp;
+ warn "BUG $$ $0 $self {dbh} UNCOMMITTED ", Carp::longmess();
+}
+
1;
if (my $lxs = delete $lei->{lxs}) {
$lxs->wq_wait_old(\&xsearch_done_wait, $lei);
}
+ if ($lei->{opt}->{'mail-sync'} && !$lei->{sto}) {
+ warn "BUG: {sto} missing with --mail-sync";
+ }
my $wait = $lei->{sto} ? $lei->{sto}->ipc_do('done') : undef;
$lei->{ovv}->ovv_end($lei);
my $start_mua;