* [PATCH] cindex: extra quit checks
@ 2023-11-28 13:20 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-11-28 13:20 UTC (permalink / raw)
To: spew
---
lib/PublicInbox/CodeSearchIdx.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm
index 0fd283d4..299fed2f 100644
--- a/lib/PublicInbox/CodeSearchIdx.pm
+++ b/lib/PublicInbox/CodeSearchIdx.pm
@@ -509,6 +509,7 @@ sub shard_commit { # via wq_io_do
sub dump_roots_start {
my ($self, $do_join) = @_;
+ return if $DO_QUIT;
$XHC //= PublicInbox::XapClient::start_helper("-j$NPROC");
$do_join // die 'BUG: no $do_join';
progress($self, 'dumping IDs from coderepos');
@@ -562,6 +563,7 @@ EOM
sub dump_ibx_start {
my ($self, $do_join) = @_;
+ return if $DO_QUIT;
$XHC //= PublicInbox::XapClient::start_helper("-j$NPROC");
my ($sort_opt, $fold_opt);
pipe(local $sort_opt->{0}, $DUMP_IBX_WPIPE);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-28 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 13:20 [PATCH] cindex: extra quit checks Eric Wong
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).