* [PATCH 1/2] lei_xsearch: simplify lei/store import check
2022-07-07 9:40 6% [PATCH 0/2] lei: minor diagnostic improvement Eric Wong
@ 2022-07-07 9:40 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-07-07 9:40 UTC (permalink / raw)
To: meta
There's no need to check for two fields when one will suffice.
---
lib/PublicInbox/LeiXSearch.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 2958d3f9..41e79856 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -285,7 +285,7 @@ sub each_remote_eml { # callback for MboxReader->mboxrd
my ($res, $kw) = $self->{import_sto}->wq_do('add_eml', $eml);
if (ref($res) eq ref($smsg)) { # totally new message
$smsg = $res;
- $self->{-imported} = 1;
+ $self->{-sto_imported} = 1;
}
$smsg->{kw} = $kw; # short-circuit xsmsg_vmd
}
@@ -376,7 +376,7 @@ sub query_remote_mboxrd {
$fh = IO::Uncompress::Gunzip->new($fh, MultiStream => 1);
PublicInbox::MboxReader->mboxrd($fh, \&each_remote_eml, $self,
$lei, $each_smsg);
- if ($self->{import_sto} && delete($self->{-imported})) {
+ if (delete($self->{-sto_imported})) {
my $wait = $self->{import_sto}->wq_do('done');
}
$reap_curl->join;
^ permalink raw reply related [relevance 7%]
* [PATCH 0/2] lei: minor diagnostic improvement
@ 2022-07-07 9:40 6% Eric Wong
2022-07-07 9:40 7% ` [PATCH 1/2] lei_xsearch: simplify lei/store import check Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-07-07 9:40 UTC (permalink / raw)
To: meta
Still trying to consistently reproduce the source of missing
messages. It may be isolated to HTTP(S) remotes, or not, but
noting the number of seen vs. written messages ought to be a
reasonable start.
patch 1/2 is just a tiny simplification I noticed along the way
Eric Wong (2):
lei_xsearch: simplify lei/store import check
lei: track seen messages to note duplicates
lib/PublicInbox/LeiConvert.pm | 8 +++++---
lib/PublicInbox/LeiToMail.pm | 13 ++++++++++---
lib/PublicInbox/LeiXSearch.pm | 24 ++++++++++++++----------
3 files changed, 29 insertions(+), 16 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 --
2022-07-07 9:40 6% [PATCH 0/2] lei: minor diagnostic improvement Eric Wong
2022-07-07 9:40 7% ` [PATCH 1/2] lei_xsearch: simplify lei/store import check 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).