Fossil SCM

Drop the search index before rebuild --compress-only --index recreates it, so it no longer fails when an index already exists.

dmestas 2026-11-20 21:15 UTC small-fixes
Commit a020a8cd82a512076f6dc982e5978e7c771820555cfe3f99f2c4e0f8d97e8349
1 file changed +1 -1
+1 -1
--- src/rebuild.c
+++ src/rebuild.c
@@ -747,12 +747,12 @@
747747
/* We should be done with options.. */
748748
verify_all_options();
749749
750750
db_begin_transaction();
751751
db_unprotect(PROTECT_ALL);
752
+ if( !compressOnlyFlag || runReindex ) search_drop_index();
752753
if( !compressOnlyFlag ){
753
- search_drop_index();
754754
ttyOutput = 1;
755755
errCnt = rebuild_db(1, doClustering);
756756
reconstruct_private_table();
757757
}
758758
db_multi_exec(
759759
--- src/rebuild.c
+++ src/rebuild.c
@@ -747,12 +747,12 @@
747 /* We should be done with options.. */
748 verify_all_options();
749
750 db_begin_transaction();
751 db_unprotect(PROTECT_ALL);
 
752 if( !compressOnlyFlag ){
753 search_drop_index();
754 ttyOutput = 1;
755 errCnt = rebuild_db(1, doClustering);
756 reconstruct_private_table();
757 }
758 db_multi_exec(
759
--- src/rebuild.c
+++ src/rebuild.c
@@ -747,12 +747,12 @@
747 /* We should be done with options.. */
748 verify_all_options();
749
750 db_begin_transaction();
751 db_unprotect(PROTECT_ALL);
752 if( !compressOnlyFlag || runReindex ) search_drop_index();
753 if( !compressOnlyFlag ){
 
754 ttyOutput = 1;
755 errCnt = rebuild_db(1, doClustering);
756 reconstruct_private_table();
757 }
758 db_multi_exec(
759

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button