Remove fsync(2) call after every write to a receiving --file. (#1176)
This removes a performance pessimization that wasn't really needed in the first place. Fixes #1159.
Этот коммит содержится в:
родитель
3b31c4b6ac
Коммит
36a094d403
@ -4277,7 +4277,6 @@ diskfile_recv(struct iperf_stream *sp)
|
||||
r = sp->rcv2(sp);
|
||||
if (r > 0) {
|
||||
(void) write(sp->diskfile_fd, sp->buffer, r);
|
||||
(void) fsync(sp->diskfile_fd);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user