user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 3/9] lei q: do not spawn MUA early
  2021-01-19  9:34  6% [PATCH 0/9] lei bugfixes and error handling Eric Wong
@ 2021-01-19  9:34  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-01-19  9:34 UTC (permalink / raw)
  To: meta

I'm not sure why, but mutt sometimes won't detect small
quickly.  We'll display a progress bar meter when writing
results, instead.
---
 lib/PublicInbox/LeiToMail.pm  | 4 ----
 lib/PublicInbox/LeiXSearch.pm | 3 +--
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/PublicInbox/LeiToMail.pm b/lib/PublicInbox/LeiToMail.pm
index 8e58ad11..99388b5b 100644
--- a/lib/PublicInbox/LeiToMail.pm
+++ b/lib/PublicInbox/LeiToMail.pm
@@ -439,10 +439,6 @@ sub post_augment { # fast (spawn compressor or mkdir), runs in main daemon
 	$self->$m($lei);
 }
 
-sub lock_free {
-	$_[0]->{base_type} =~ /\A(?:maildir|mh|imap|jmap)\z/ ? 1 : 0;
-}
-
 sub write_mail { # via ->wq_do
 	my ($self, $git_dir, $oid, $lei, $kw) = @_;
 	my $not_done = delete $self->{4}; # write end of {each_smsg_done}
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 45a073a0..120857b8 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -191,7 +191,7 @@ sub query_done { # EOF callback
 		dwaitpid($_, $ipc_worker_reap, $l2m) for @$pids;
 	}
 	$lei->{ovv}->ovv_end($lei);
-	$lei->start_mua if $l2m && !$l2m->lock_free;
+	$lei->start_mua if $l2m;
 	$lei->dclose;
 }
 
@@ -201,7 +201,6 @@ sub start_query { # always runs in main (lei-daemon) process
 		$lei->{1} = $io->[1];
 		$l2m->post_augment($lei);
 		$io->[1] = delete $lei->{1};
-		$lei->start_mua($io->[3]) if $l2m->lock_free;
 	}
 	my $remotes = $self->{remotes} // [];
 	if ($lei->{opt}->{thread}) {

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/9] lei bugfixes and error handling
@ 2021-01-19  9:34  6% Eric Wong
  2021-01-19  9:34  7% ` [PATCH 3/9] lei q: do not spawn MUA early Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-01-19  9:34 UTC (permalink / raw)
  To: meta

1/9 could have some potential when we start handling remotes,
3/9 seems necessary, unfortunately :<
4/9 helped find some bugs,
9/9 is incomplete, but that describes everything :<

Eric Wong (9):
  lei q: start ->mset while query_prepare runs
  lei q: fix SIGPIPE handling from lei2mail workers
  lei q: do not spawn MUA early
  lei: write daemon errors to the sock directory
  lei q: fix augment of compressed mailboxes
  lei_overview: do not write if $lei->{1} is gone
  t/lei: fix double-running of socket test with oneshot
  lei: test some likely errors due to misuse
  lei_overview: start implementing format detection

 lib/PublicInbox/LEI.pm         |  22 ++++---
 lib/PublicInbox/LeiOverview.pm |  25 ++++++--
 lib/PublicInbox/LeiToMail.pm   |  39 +++++++-----
 lib/PublicInbox/LeiXSearch.pm  | 105 +++++++++++++++++++++++----------
 lib/PublicInbox/Spawn.pm       |   2 +-
 t/lei.t                        |  75 +++++++++++++++--------
 t/lei_to_mail.t                |   4 +-
 xt/lei-sigpipe.t               |  29 +++++----
 8 files changed, 200 insertions(+), 101 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-01-19  9:34  6% [PATCH 0/9] lei bugfixes and error handling Eric Wong
2021-01-19  9:34  7% ` [PATCH 3/9] lei q: do not spawn MUA early Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).