diff options
author | Eric Wong <e@80x24.org> | 2019-05-23 09:36:49 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-23 17:43:50 +0000 |
commit | e85404c6d681512ff013200e9936bb706facc8cb (patch) | |
tree | 8f6db82a8d10705fc166d27a2edfd9170ef946fe /script | |
parent | 61a2fff5b34a3e32f49ee35c1e32b7931d9bb519 (diff) | |
download | public-inbox-e85404c6d681512ff013200e9936bb706facc8cb.tar.gz |
By avoid copydatabase(1) entirely, we can make further changes to avoid locking the entire inbox for a long operation and switch to fine-grained locking.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-xcpdb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-xcpdb b/script/public-inbox-xcpdb index cbf9f556..d494991d 100755 --- a/script/public-inbox-xcpdb +++ b/script/public-inbox-xcpdb @@ -8,7 +8,7 @@ use PublicInbox::Admin; PublicInbox::Admin::require_or_die('-search'); my $usage = "Usage: public-inbox-xcpdb INBOX_DIR\n"; my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV) or die $usage; -my $cmd = [qw(copydatabase --no-renumber)]; +my $cmd = [ \&PublicInbox::Xapcmd::cpdb ]; open my $null, '>', '/dev/null' or die "failed to open /dev/null: $!\n"; my $rdr = { 1 => fileno($null) }; foreach (@ibxs) { |