Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
btpd
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
There's no need to fsync here, so remove the call. This should improve
write performance.
master
Richard Nyberg
19 anni fa
parent
110b1d7e22
commit
f20c481b11
1 ha cambiato i file
con
0 aggiunte
e
5 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-5
misc/stream.c
+ 0
- 5
misc/stream.c
Vedi File
@@ -146,11 +146,6 @@ bts_put(struct bt_stream *bts, off_t off, const uint8_t *buf, size_t len)
bts->f_off += didwrite;
bts->t_off += didwrite;
if (bts->f_off == bts->files[bts->index].length) {
if (fsync(bts->fd) == -1) {
int err = errno;
close(bts->fd);
return err;
}
if (close(bts->fd) == -1)
return errno;
bts->fd = -1;
Write
Preview
Loading…
Annulla
Salva