Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
Immanuel
/
btpd
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
There's no need to fsync here, so remove the call. This should improve
write performance.
master
Richard Nyberg
hace 19 años
padre
110b1d7e22
commit
f20c481b11
Se han
modificado 1 ficheros
con
0 adiciones
y
5 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+0
-5
misc/stream.c
+ 0
- 5
misc/stream.c
Ver fichero
@@ -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;
Escribir
Vista previa
Cargando…
Cancelar
Guardar