diff options
author | Eric Wong <e@80x24.org> | 2019-05-23 09:36:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-23 17:43:50 +0000 |
commit | 0c6d38221ec9fbf9d7c7e0329252b10f17ab7a27 (patch) | |
tree | ec8826ca0cfa8c63a636cacc4ba35fe7e658975b /lib/PublicInbox/Admin.pm | |
parent | a1c3fb1bbef319a0af8ab63380495984c3a4ee18 (diff) | |
download | public-inbox-0c6d38221ec9fbf9d7c7e0329252b10f17ab7a27.tar.gz |
Copying an entire Xapian DB takes a long time, so update our reindexing code to support partial reindexing, snapshot the pre-copydatabase git revisions, perform the lengthy copy, and do a partial reindex when the copy + renames are done.
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r-- | lib/PublicInbox/Admin.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 94f47abb..34aa3129 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -141,7 +141,7 @@ sub index_inbox { if (ref($ibx) && ($ibx->{version} || 1) == 2) { eval { require PublicInbox::V2Writable }; die "v2 requirements not met: $@\n" if $@; - my $v2w = eval { + my $v2w = eval { $ibx->importer(0) } || eval { PublicInbox::V2Writable->new($ibx, {nproc=>$jobs}); }; if (defined $jobs) { |