]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
use Getopt::Long hashref for --no-fsync and --dangerous
authorEric Wong <e@80x24.org>
Tue, 26 Aug 2025 19:50:49 +0000 (19:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Aug 2025 18:48:21 +0000 (18:48 +0000)
commit057f6575c8181645005196c127ef557f61e8fe85
treea9fc3b553580a42d7b2e4574533262304e183fa0
parent0789effd55d2f716ff2d03db1e4680fe862f10ef
use Getopt::Long hashref for --no-fsync and --dangerous

We can eliminate the {-no_fsync} and {-dangerous} fields by
using the Getopt::Long hashref directly.  This will make it
easier to support additional CLI options (e.g. --cow).

Our internal APIs now defaults to disabling fsync, however the
CLI tools still override that internal default to enable fsync.
Having our internals default to disabling fsync can slightly
improve test performance, since they're the main users of our
unstable internal API.
24 files changed:
lib/PublicInbox/CodeSearchIdx.pm
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/MiscIdx.pm
lib/PublicInbox/Msgmap.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchIdxShard.pm
lib/PublicInbox/TestCommon.pm
lib/PublicInbox/V2Writable.pm
script/public-inbox-convert
script/public-inbox-index
script/public-inbox-purge
scripts/import_slrnspool
t/extsearch.t
t/miscsearch.t
t/purge.t
t/replace.t
t/v1reindex.t
t/v2-add-remove-add.t
t/v2mirror.t
t/v2reindex.t
t/v2writable.t
t/watch_filter_rubylang.t
t/watch_maildir_v2.t
xt/create-many-inboxes.t