Displaying 1 result from an estimated 1 matches for "goldor".
Did you mean:
golder
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...size_r > 0) {
int32 read_size = MAX(sum.blength * 2, 16*1024);
mapbuf = map_file(fd_r, size_r, read_size, sum.blength);
@@ -231,11 +245,18 @@
stats.literal_data += i;
cleanup_got_literal = 1;
- sum_update(data, i);
+ if (f_in >= 0)
+ /* no need for md4 during fast copy -goldor */
+ sum_update(data, i);
if (fd != -1 && write_file(fd,data,i) != i)
goto report_write_error;
offset += i;
+ if (f_in < 0 && percent < offset * 100 / total_size) {
+ /* report progress of fast copy to sender every 1% -goldor */
+ write_buf(local_sock...