| | @@ -368,17 +368,12 @@ |
| 368 | 368 | ** Core function to rebuild the information in the derived tables of a |
| 369 | 369 | ** fossil repository from the blobs. This function is shared between |
| 370 | 370 | ** 'rebuild_database' ('rebuild') and 'reconstruct_cmd' |
| 371 | 371 | ** ('reconstruct'), both of which have to regenerate this information |
| 372 | 372 | ** from scratch. |
| 373 | | -** |
| 374 | | -** If the randomize parameter is true, then the BLOBs are deliberately |
| 375 | | -** extracted in a random order. This feature is used to test the |
| 376 | | -** ability of fossil to accept records in any order and still |
| 377 | | -** construct a sane repository. |
| 378 | 373 | */ |
| 379 | | -int rebuild_db(int randomize, int doOut, int doClustering){ |
| 374 | +int rebuild_db(int doOut, int doClustering){ |
| 380 | 375 | Stmt s, q; |
| 381 | 376 | int errCnt = 0; |
| 382 | 377 | int incrSize; |
| 383 | 378 | Blob sql; |
| 384 | 379 | |
| | @@ -605,18 +600,16 @@ |
| 605 | 600 | ** --index Always add in the full-text search index |
| 606 | 601 | ** --noverify Skip the verification of changes to the BLOB table |
| 607 | 602 | ** --noindex Always omit the full-text search index |
| 608 | 603 | ** --pagesize N Set the database pagesize to N. (512..65536 and power of 2) |
| 609 | 604 | ** --quiet Only show output if there are errors |
| 610 | | -** --randomize Scan artifacts in a random order |
| 611 | 605 | ** --stats Show artifact statistics after rebuilding |
| 612 | 606 | ** --vacuum Run VACUUM on the database after rebuilding |
| 613 | 607 | ** --wal Set Write-Ahead-Log journalling mode on the database |
| 614 | 608 | */ |
| 615 | 609 | void rebuild_database(void){ |
| 616 | 610 | int forceFlag; |
| 617 | | - int randomizeFlag; |
| 618 | 611 | int errCnt = 0; |
| 619 | 612 | int omitVerify; |
| 620 | 613 | int doClustering; |
| 621 | 614 | const char *zPagesize; |
| 622 | 615 | int newPagesize = 0; |
| | @@ -632,11 +625,10 @@ |
| 632 | 625 | int optIfNeeded; |
| 633 | 626 | int compressOnlyFlag; |
| 634 | 627 | |
| 635 | 628 | omitVerify = find_option("noverify",0,0)!=0; |
| 636 | 629 | forceFlag = find_option("force","f",0)!=0; |
| 637 | | - randomizeFlag = find_option("randomize", 0, 0)!=0; |
| 638 | 630 | doClustering = find_option("cluster", 0, 0)!=0; |
| 639 | 631 | runVacuum = find_option("vacuum",0,0)!=0; |
| 640 | 632 | runDeanalyze = find_option("deanalyze",0,0)!=0; |
| 641 | 633 | runAnalyze = find_option("analyze",0,0)!=0; |
| 642 | 634 | runCompress = find_option("compress",0,0)!=0; |
| | @@ -679,11 +671,11 @@ |
| 679 | 671 | db_begin_transaction(); |
| 680 | 672 | db_unprotect(PROTECT_ALL); |
| 681 | 673 | if( !compressOnlyFlag ){ |
| 682 | 674 | search_drop_index(); |
| 683 | 675 | ttyOutput = 1; |
| 684 | | - errCnt = rebuild_db(randomizeFlag, 1, doClustering); |
| 676 | + errCnt = rebuild_db(1, doClustering); |
| 685 | 677 | reconstruct_private_table(); |
| 686 | 678 | } |
| 687 | 679 | db_multi_exec( |
| 688 | 680 | "REPLACE INTO config(name,value,mtime) VALUES('content-schema',%Q,now());" |
| 689 | 681 | "REPLACE INTO config(name,value,mtime) VALUES('aux-schema',%Q,now());" |
| | @@ -963,11 +955,11 @@ |
| 963 | 955 | db_end_transaction(0); |
| 964 | 956 | db_unprotect(PROTECT_ALL); |
| 965 | 957 | db_multi_exec("VACUUM;"); |
| 966 | 958 | db_protect_pop(); |
| 967 | 959 | }else{ |
| 968 | | - rebuild_db(0, 1, 0); |
| 960 | + rebuild_db(1, 0); |
| 969 | 961 | db_end_transaction(0); |
| 970 | 962 | } |
| 971 | 963 | } |
| 972 | 964 | |
| 973 | 965 | /* |
| | @@ -1255,11 +1247,11 @@ |
| 1255 | 1247 | |
| 1256 | 1248 | fossil_print("Reading files from directory \"%s\"...\n", g.argv[3]); |
| 1257 | 1249 | recon_read_dir(g.argv[3]); |
| 1258 | 1250 | fossil_print("\nBuilding the Fossil repository...\n"); |
| 1259 | 1251 | |
| 1260 | | - rebuild_db(0, 1, 1); |
| 1252 | + rebuild_db(1, 1); |
| 1261 | 1253 | |
| 1262 | 1254 | /* Backwards compatibility: Mark check-ins with "+private" tags as private. */ |
| 1263 | 1255 | reconstruct_private_table(); |
| 1264 | 1256 | /* Newer method: Import the list of private artifacts to the PRIVATE table. */ |
| 1265 | 1257 | if( fKeepPrivate ){ |
| 1266 | 1258 | |