Fossil SCM

Fix for the "-u" option on clone - make sure at least three round-trips occur as it takes that many to get the UV transfer started.

drh 2016-09-19 14:50 trunk
Commit 16306153c09dd89f5a8f1e29ac88ad65172f6920
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2373,11 +2373,11 @@
23732373
*/
23742374
if( cloneSeqno<=0 && nCycle>1 ) go = 0;
23752375
23762376
/* Continue looping as long as new uvfile cards are being received
23772377
** and uvgimme cards are being sent. */
2378
- if( nUvGimmeSent>0 && nUvFileRcvd>0 ) go = 1;
2378
+ if( nUvGimmeSent>0 && (nUvFileRcvd>0 || nCycle<3) ) go = 1;
23792379
23802380
db_multi_exec("DROP TABLE onremote");
23812381
if( go ){
23822382
manifest_crosslink_end(MC_PERMIT_HOOKS);
23832383
}else{
23842384
--- src/xfer.c
+++ src/xfer.c
@@ -2373,11 +2373,11 @@
2373 */
2374 if( cloneSeqno<=0 && nCycle>1 ) go = 0;
2375
2376 /* Continue looping as long as new uvfile cards are being received
2377 ** and uvgimme cards are being sent. */
2378 if( nUvGimmeSent>0 && nUvFileRcvd>0 ) go = 1;
2379
2380 db_multi_exec("DROP TABLE onremote");
2381 if( go ){
2382 manifest_crosslink_end(MC_PERMIT_HOOKS);
2383 }else{
2384
--- src/xfer.c
+++ src/xfer.c
@@ -2373,11 +2373,11 @@
2373 */
2374 if( cloneSeqno<=0 && nCycle>1 ) go = 0;
2375
2376 /* Continue looping as long as new uvfile cards are being received
2377 ** and uvgimme cards are being sent. */
2378 if( nUvGimmeSent>0 && (nUvFileRcvd>0 || nCycle<3) ) go = 1;
2379
2380 db_multi_exec("DROP TABLE onremote");
2381 if( go ){
2382 manifest_crosslink_end(MC_PERMIT_HOOKS);
2383 }else{
2384

Keyboard Shortcuts

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