* [PATCH 1/4] lei: use Time::HiRes stat for nanosecond resolution
2021-01-25 6:41 5% [PATCH 0/4] miscidx: lazy transactions to fix tests Eric Wong
@ 2021-01-25 6:41 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-01-25 6:41 UTC (permalink / raw)
To: meta
The default stat() lacks subsecond granularity and may
lead to config updates being ignored.
---
lib/PublicInbox/LEI.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 09eac58c..effc6c52 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -24,6 +24,7 @@ use PublicInbox::DS qw(now dwaitpid);
use PublicInbox::Spawn qw(spawn popen_rd);
use PublicInbox::OnDestroy;
use Text::Wrap qw(wrap);
+use Time::HiRes qw(stat); # ctime comparisons for config cache
use File::Path qw(mkpath);
use File::Spec;
our $quit = \&CORE::exit;
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] miscidx: lazy transactions to fix tests
@ 2021-01-25 6:41 5% Eric Wong
2021-01-25 6:41 7% ` [PATCH 1/4] lei: use Time::HiRes stat for nanosecond resolution Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-01-25 6:41 UTC (permalink / raw)
To: meta
1/4 fixes a theoretical problem while search of a fix for 2/4
2/4 fixes a real problem with t/lei.t on a weak machine
The rest are some yak shaves I noticed while chasing 2/4
Eric Wong (4):
lei: use Time::HiRes stat for nanosecond resolution
miscidx: switch to lazy transactions
spawn: split() on regexp, not a literal string
use defined-or in a few more places
lib/PublicInbox/ExtSearchIdx.pm | 3 +--
lib/PublicInbox/LEI.pm | 1 +
lib/PublicInbox/MiscIdx.pm | 19 ++++++++++++-------
lib/PublicInbox/Spawn.pm | 9 ++++-----
lib/PublicInbox/TestCommon.pm | 10 ++++------
lib/PublicInbox/V2Writable.pm | 4 ----
lib/PublicInbox/Watch.pm | 2 +-
t/gcf2.t | 2 +-
t/imap_tracker.t | 2 +-
t/miscsearch.t | 1 -
t/run.perl | 2 +-
xt/create-many-inboxes.t | 3 +--
12 files changed, 27 insertions(+), 31 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-01-25 6:41 5% [PATCH 0/4] miscidx: lazy transactions to fix tests Eric Wong
2021-01-25 6:41 7% ` [PATCH 1/4] lei: use Time::HiRes stat for nanosecond resolution 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).