diff options
author | Eric Wong <e@80x24.org> | 2022-03-07 10:57:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-03-08 00:30:03 +0000 |
commit | 3eec2f7792040f75f3988c520f308e2445baf645 (patch) | |
tree | e581cdd77765c84ae870999f36193e4302f5df71 /script/public-inbox-extindex | |
parent | 798bd392d273735a69f0b009e70d8bb2dbc4a7e4 (diff) | |
download | public-inbox-3eec2f7792040f75f3988c520f308e2445baf645.tar.gz |
This enables Xapian::DB_DANGEROUS to support in-place updates. This can speed up the initial index and reduce I/O at the cost of preventing concurrent readers and being unsafe in the face of any abnormal terminations. This is more dangerous than --no-fsync. --no-fsync is only unsafe in the event of a power loss or kernel crash; --dangerous is unsafe even on SIGKILL.
Diffstat (limited to 'script/public-inbox-extindex')
-rwxr-xr-x | script/public-inbox-extindex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-extindex b/script/public-inbox-extindex index c63f5dc2..bee824b1 100755 --- a/script/public-inbox-extindex +++ b/script/public-inbox-extindex @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org> +# Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; use v5.10.1; @@ -28,7 +28,7 @@ See public-inbox-extindex(1) man page for full documentation. EOF my $opt = { quiet => -1, compact => 0, fsync => 1, scan => 1 }; GetOptions($opt, qw(verbose|v+ reindex rethread compact|c+ jobs|j=i - fsync|sync! fast + fsync|sync! fast dangerous indexlevel|index-level|L=s max_size|max-size=s batch_size|batch-size=s dedupe:s@ gc commit-interval=i watch scan! dry-run|n |