* [PATCH] cindex: fix join=reset
@ 2023-11-24 9:13 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-11-24 9:13 UTC (permalink / raw)
To: spew
---
lib/PublicInbox/CodeSearchIdx.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm
index ee958b0c..3764f13e 100644
--- a/lib/PublicInbox/CodeSearchIdx.pm
+++ b/lib/PublicInbox/CodeSearchIdx.pm
@@ -991,7 +991,7 @@ sub init_join_postfork ($) {
require_progs('join', join => \@JOIN);
my $d2 = '([0-9]{2})';
my $dt_re = qr!([0-9]{4})$d2$d2$d2$d2$d2!;
- if (my $cur = $JOIN{reset} ? current_join_data($self) : undef) {
+ if (my $cur = $JOIN{reset} ? undef : current_join_data($self)) {
if (($cur->{dt}->[1] // '') =~ m!\A$dt_re\z!o) {
my ($Y, $m, $d, $H, $M, $S) = ($1, $2, $3, $4, $5, $6);
my $t = timegm($S, $M, $H, $d, $m - 1, $Y);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-24 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-24 9:13 [PATCH] cindex: fix join=reset 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).