user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* Re: [PATCH] index: check for xapian-compact when using --compact
  2020-09-01 16:54  7% [PATCH] index: check for xapian-compact when using --compact Eric Wong
@ 2020-09-01 16:58  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-09-01 16:58 UTC (permalink / raw)
  To: meta

Eric Wong <e@80x24.org> wrote:
> Otherwise, users may be frustrated to discover it missing
> a long indexing run.

"after a long indexing run" :x

^ permalink raw reply	[relevance 7%]

* [PATCH] index: check for xapian-compact when using --compact
@ 2020-09-01 16:54  7% Eric Wong
  2020-09-01 16:58  7% ` Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-09-01 16:54 UTC (permalink / raw)
  To: meta

Otherwise, users may be frustrated to discover it missing
a long indexing run.
---
 script/public-inbox-index | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/script/public-inbox-index b/script/public-inbox-index
index 89c6b782..5dad6ecb 100755
--- a/script/public-inbox-index
+++ b/script/public-inbox-index
@@ -64,10 +64,14 @@ foreach my $ibx (@ibxs) {
 	PublicInbox::Admin::scan_ibx_modules($mods, $ibx);
 }
 
+# "Search::Xapian" includes SWIG "Xapian", too:
+$opt->{compact} = 0 if !$mods->{'Search::Xapian'};
+
 PublicInbox::Admin::require_or_die(keys %$mods);
 my $env = PublicInbox::Admin::index_prepare($opt, $cfg);
 local %ENV = (%ENV, %$env) if $env;
 require PublicInbox::InboxWritable;
+PublicInbox::Xapcmd::check_compact() if $opt->{compact};
 PublicInbox::Admin::progress_prepare($opt);
 for my $ibx (@ibxs) {
 	$ibx = PublicInbox::InboxWritable->new($ibx);

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-09-01 16:54  7% [PATCH] index: check for xapian-compact when using --compact Eric Wong
2020-09-01 16:58  7% ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).