Skip to content

Commit 9697856

Browse files
chengyechunlavv17
authored andcommitted
Update FileCopy.cc
File growth can be calculated only if it is strictly greater than
1 parent a311746 commit 9697856

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FileCopy.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,8 @@ void FileCopyPeerFA::OpenSession()
11371137
debug((10,"copy dst: seek past eof (seek_pos=%lld, size=%lld)\n",
11381138
(long long)seek_pos,(long long)e_size));
11391139
eof=true;
1140-
fileincreased=true;
1140+
if(seek_pos>e_size)
1141+
fileincreased=true;
11411142
if(date==NO_DATE || date==NO_DATE_YET)
11421143
return;
11431144
}

0 commit comments

Comments
 (0)