]> Sergey Matveev's repositories - public-inbox.git/commitdiff
xcpdb: support --no-fsync from CLI
authorEric Wong <e@yhbt.net>
Wed, 12 Aug 2020 09:17:15 +0000 (09:17 +0000)
committerEric Wong <e@yhbt.net>
Thu, 13 Aug 2020 02:22:55 +0000 (02:22 +0000)
This was omitted in 8b1950055d51d436 :x

Fixes: 8b1950055d51d436 ("index+xcpdb: rename `--no-sync' to `--no-fsync'")
script/public-inbox-xcpdb

index fcd9614884b6c0cd5ccb1ee8c4258076c6979352..2c91598cb4e9a51039d4fbf691fa533161387f40 100755 (executable)
@@ -8,8 +8,9 @@ use PublicInbox::Xapcmd;
 use PublicInbox::Admin;
 PublicInbox::Admin::require_or_die('-search');
 my $usage = "Usage: public-inbox-xcpdb [--compact] INBOX_DIR\n";
-my $opt = { sync => 1 };
-my @opt = (qw(sync! compact reshard|R=i), @PublicInbox::Xapcmd::COMPACT_OPT);
+my $opt = { fsync => 1 };
+my @opt = (qw(fsync|sync! compact reshard|R=i),
+       @PublicInbox::Xapcmd::COMPACT_OPT);
 GetOptions($opt, @opt) or die "bad command-line args\n$usage";
 my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV) or die $usage;
 foreach (@ibxs) {