Fossil SCM
Remove an unnecessary SQL operation that sometimes causes errors.
Commit
5da9a8c824146e91cc6738ca952bda173f474d64
Parent
06e0cb70054d3c3…
1 file changed
+2
+2
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -637,15 +637,17 @@ | ||
| 637 | 637 | Stmt q; |
| 638 | 638 | int nUncl; |
| 639 | 639 | int nRow = 0; |
| 640 | 640 | int rid; |
| 641 | 641 | |
| 642 | +#if 0 | |
| 642 | 643 | /* We should not ever get any private artifacts in the unclustered table. |
| 643 | 644 | ** But if we do (because of a bug) now is a good time to delete them. */ |
| 644 | 645 | db_multi_exec( |
| 645 | 646 | "DELETE FROM unclustered WHERE rid IN (SELECT rid FROM private)" |
| 646 | 647 | ); |
| 648 | +#endif | |
| 647 | 649 | |
| 648 | 650 | nUncl = db_int(0, "SELECT count(*) FROM unclustered /*scan*/" |
| 649 | 651 | " WHERE NOT EXISTS(SELECT 1 FROM phantom" |
| 650 | 652 | " WHERE rid=unclustered.rid)"); |
| 651 | 653 | if( nUncl>=100 ){ |
| 652 | 654 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -637,15 +637,17 @@ | |
| 637 | Stmt q; |
| 638 | int nUncl; |
| 639 | int nRow = 0; |
| 640 | int rid; |
| 641 | |
| 642 | /* We should not ever get any private artifacts in the unclustered table. |
| 643 | ** But if we do (because of a bug) now is a good time to delete them. */ |
| 644 | db_multi_exec( |
| 645 | "DELETE FROM unclustered WHERE rid IN (SELECT rid FROM private)" |
| 646 | ); |
| 647 | |
| 648 | nUncl = db_int(0, "SELECT count(*) FROM unclustered /*scan*/" |
| 649 | " WHERE NOT EXISTS(SELECT 1 FROM phantom" |
| 650 | " WHERE rid=unclustered.rid)"); |
| 651 | if( nUncl>=100 ){ |
| 652 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -637,15 +637,17 @@ | |
| 637 | Stmt q; |
| 638 | int nUncl; |
| 639 | int nRow = 0; |
| 640 | int rid; |
| 641 | |
| 642 | #if 0 |
| 643 | /* We should not ever get any private artifacts in the unclustered table. |
| 644 | ** But if we do (because of a bug) now is a good time to delete them. */ |
| 645 | db_multi_exec( |
| 646 | "DELETE FROM unclustered WHERE rid IN (SELECT rid FROM private)" |
| 647 | ); |
| 648 | #endif |
| 649 | |
| 650 | nUncl = db_int(0, "SELECT count(*) FROM unclustered /*scan*/" |
| 651 | " WHERE NOT EXISTS(SELECT 1 FROM phantom" |
| 652 | " WHERE rid=unclustered.rid)"); |
| 653 | if( nUncl>=100 ){ |
| 654 |