ソースを参照

There's no need to fsync here, so remove the call. This should improve

write performance.
master
Richard Nyberg 18年前
コミット
f20c481b11
1個のファイルの変更0行の追加5行の削除
  1. +0
    -5
      misc/stream.c

+ 0
- 5
misc/stream.c ファイルの表示

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


読み込み中…
キャンセル
保存