This website works better with JavaScript.
首頁
探索
說明
登入
Immanuel
/
btpd
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
There's no need to fsync here, so remove the call. This should improve
write performance.
master
Richard Nyberg
18 年之前
父節點
110b1d7e22
當前提交
f20c481b11
共有
1 個文件被更改
,包括
0 次插入
和
5 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
取消
儲存