1
1

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.
Этот коммит содержится в:
Bruce A. Mah 2021-06-29 17:27:05 -07:00 коммит произвёл GitHub
родитель 3b31c4b6ac
Коммит 36a094d403
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -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;
}