diff options
author | Eric Wong <e@80x24.org> | 2021-06-01 19:14:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-06-01 19:15:54 +0000 |
commit | ef06085156e3abf440233e1c90bcaab38a533bc4 (patch) | |
tree | c9afa5b6fa330a6aedaec306fe68bd24d0cf3599 | |
parent | 693247be6380c4f278ebc0c4f17c1ac995a831d3 (diff) | |
download | public-inbox-ef06085156e3abf440233e1c90bcaab38a533bc4.tar.gz |
I'm not actually sure if I hit an uncommitted transaction just now, it doesn't seem like it.
-rw-r--r-- | lib/PublicInbox/LeiMailSync.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiMailSync.pm b/lib/PublicInbox/LeiMailSync.pm index 36cd564c..22ee1109 100644 --- a/lib/PublicInbox/LeiMailSync.pm +++ b/lib/PublicInbox/LeiMailSync.pm @@ -392,10 +392,11 @@ sub imap_oid { # warnings, not sure what... sub DESTROY { my ($self) = @_; - my $dbh = $self->{dbh} or return; + my $dbh = delete($self->{dbh}) or return; return if $dbh->{ReadOnly}; use Carp; - warn "BUG $$ $0 $self {dbh} UNCOMMITTED ", Carp::longmess(); + undef $dbh; + warn "BUG $$ $0 $self {dbh} OPEN ppid=".getppid.' '.Carp::longmess(); } 1; |