Fossil

Check-in [0bb7d7b8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the termination condition for the clone client so that it does not stop transferring before all the artifacts have been sent.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: 0bb7d7b8ef64d7e8042e1c17dcea206597b96621
User & Date: drh 2010-10-28 03:41:43
Context
2010-10-28
13:07
Reduce the amount of processing in between when a server timestamp is generated and when it is evaluated for time skew by the client - to reduce the risk of detecting time skew simply due to a slow disk. check-in: a4cdf8d2 user: drh tags: experimental
03:41
Fix the termination condition for the clone client so that it does not stop transferring before all the artifacts have been sent. check-in: 0bb7d7b8 user: drh tags: experimental
01:58
Do not attempt to process a delta-manifest if its baseline-manifest is a phantom. Defer processing until the phantom is resolved. check-in: b073039b user: drh tags: experimental
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xfer.c.

1375
1376
1377
1378
1379
1380
1381


1382
1383
1384
1385
1386
1387
1388
    ** there are still phantoms, then go another round.
    */
    nFileRecv = xfer.nFileRcvd + xfer.nDeltaRcvd + xfer.nDanglingFile;
    if( (nFileRecv>0 || newPhantom) && db_exists("SELECT 1 FROM phantom") ){
      go = 1;
      mxPhantomReq = nFileRecv*2;
      if( mxPhantomReq<200 ) mxPhantomReq = 200;


    }
    nCardRcvd = 0;
    xfer.nFileRcvd = 0;
    xfer.nDeltaRcvd = 0;
    xfer.nDanglingFile = 0;

    /* If we have one or more files queued to send, then go







>
>







1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
    ** there are still phantoms, then go another round.
    */
    nFileRecv = xfer.nFileRcvd + xfer.nDeltaRcvd + xfer.nDanglingFile;
    if( (nFileRecv>0 || newPhantom) && db_exists("SELECT 1 FROM phantom") ){
      go = 1;
      mxPhantomReq = nFileRecv*2;
      if( mxPhantomReq<200 ) mxPhantomReq = 200;
    }else if( cloneFlag && nFileRecv>0 ){
      go = 1;
    }
    nCardRcvd = 0;
    xfer.nFileRcvd = 0;
    xfer.nDeltaRcvd = 0;
    xfer.nDanglingFile = 0;

    /* If we have one or more files queued to send, then go