Fossil SCM
Drop the search index before rebuild --compress-only --index recreates it, so it no longer fails when an index already exists.
Commit
a020a8cd82a512076f6dc982e5978e7c771820555cfe3f99f2c4e0f8d97e8349
Parent
5068271418d76bf…
1 file changed
+1
-1
+1
-1
| --- src/rebuild.c | ||
| +++ src/rebuild.c | ||
| @@ -747,12 +747,12 @@ | ||
| 747 | 747 | /* We should be done with options.. */ |
| 748 | 748 | verify_all_options(); |
| 749 | 749 | |
| 750 | 750 | db_begin_transaction(); |
| 751 | 751 | db_unprotect(PROTECT_ALL); |
| 752 | + if( !compressOnlyFlag || runReindex ) search_drop_index(); | |
| 752 | 753 | if( !compressOnlyFlag ){ |
| 753 | - search_drop_index(); | |
| 754 | 754 | ttyOutput = 1; |
| 755 | 755 | errCnt = rebuild_db(1, doClustering); |
| 756 | 756 | reconstruct_private_table(); |
| 757 | 757 | } |
| 758 | 758 | db_multi_exec( |
| 759 | 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 ){ |
| 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 |