]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: document the reason for --no-renumber
authorEric Wong <e@80x24.org>
Thu, 23 May 2019 09:36:41 +0000 (09:36 +0000)
committerEric Wong <e@80x24.org>
Thu, 23 May 2019 17:43:50 +0000 (17:43 +0000)
We're going to need copydatabase, too

Documentation/public-inbox-v1-format.pod
Documentation/public-inbox-v2-format.pod
script/public-inbox-compact

index 2a6b8d3c6f1c07b4073b827323c3a2a47022de90..3b0e70e1fc5f68039a114062af4b3b7282c4cc87 100644 (file)
@@ -134,6 +134,10 @@ Since SCHEMA_VERSION 15 and the development of the v2 format,
 the "overview" DB also exists in the xapian directory for v1
 repositories.  See L<public-inbox-v2-format(5)/OVERVIEW DB>
 
+Our use of the L</OVERVIEW DB> requires Xapian document IDs to
+remain stable.  Thus, use of L<xapian-compact(1)> and
+L<copydatabase(8)> require the use of C<--no-renumber> switch.
+
 =item $GIT_DIR/ssoma.index
 
 This file is no longer used or created by public-inbox, but it is
index 7dfe3296363b1c5032eca127ee13e901a364a9a8..bc58074e0de56fdfe0c791fea2ed44ad1a5eef2d 100644 (file)
@@ -117,6 +117,10 @@ Rotational storage devices are NOT recommended for indexing of
 large mail archives; but are fine for backup and usable for
 small instances.
 
+Our use of the L</OVERVIEW DB> requires Xapian document IDs to
+remain stable.  Thus, use of L<xapian-compact(1)> and
+L<copydatabase(8)> require the use of C<--no-renumber> switch.
+
 =head2 OVERVIEW DB
 
 Towards the end of v2 development, it became apparent Xapian did
index d22e40323dfef08b513aea2d8a4c95f0137dc5a1..395eec37a4cff439cc2d1db1afbac81e9fb2fa95 100755 (executable)
@@ -51,6 +51,8 @@ sub commit_changes ($$$) {
        $im->lock_release;
        remove_tree("$old/old") or die "failed to remove $old/old: $!\n";
 }
+
+# we rely on --no-renumber to keep docids synched to NNTP
 my @compact = qw(xapian-compact --no-renumber);
 if ($v == 2) {
        require PublicInbox::V2Writable;