Differences From:
File
src/xfer.c
part of check-in
[16fbb59b96]
- Fix the delta computation on download so that it never tries to
delta a file that has the same file as both its parent and its child.
by
drh on
2007-12-03 19:08:11.
[view]
To:
File
src/xfer.c
part of check-in
[18fbb9c52d]
- Send native deltas when cloning. The reduces bandwidth and reduces
server load.
by
drh on
2007-12-03 19:17:45.
Also file
src/xfer.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
@@ -457,9 +457,9 @@
int isPull = 0;
int isPush = 0;
int nErr = 0;
Xfer xfer;
- int nativeDeltaFlag = 0;
+ int deltaFlag = 0;
memset(&xfer, 0, sizeof(xfer));
blobarray_zero(xfer.aToken, count(xfer.aToken));
cgi_set_content_type(g.zContentType);
@@ -506,9 +506,9 @@
){
if( isPull ){
int rid = rid_from_uuid(&xfer.aToken[1], 0);
if( rid ){
- send_file(&xfer, rid, &xfer.aToken[1], 0);
+ send_file(&xfer, rid, &xfer.aToken[1], deltaFlag);
}
}
}else
@@ -597,9 +597,9 @@
nErr++;
break;
}
isPull = 1;
- /* nativeDeltaFlag = 1; */
+ deltaFlag = 1;
@ push %s(db_get("server-code", "x")) %s(db_get("project-code", "x"))
}else
/* login USER NONCE SIGNATURE