]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiXSearch.pm
lei_mail_sync: debug code for uncommitted txn
[public-inbox.git] / lib / PublicInbox / LeiXSearch.pm
index 3482082dfe967e7577813caa0eea6412e8c5246b..e2a8e8e3b6881a360c6db2458c5c6c9466c6ea6b 100644 (file)
@@ -357,6 +357,9 @@ sub query_done { # EOF callback for main daemon
        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;