mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
fsync after pack
Well, this might help. Apparently "useless" was a bit too strong a word.
This commit is contained in:
parent
292156b2be
commit
65e9634db1
6
v/sist.c
6
v/sist.c
@ -72,9 +72,13 @@ u2_sist_pack(u2_reck* rec_u, c3_w tem_w, c3_w typ_w, c3_w* bob_w, c3_w len_w)
|
||||
c3_assert(0);
|
||||
}
|
||||
lug_u->len_d += (c3_d)(lar_u.len_w + c3_wiseof(lar_u));
|
||||
|
||||
free(bob_w);
|
||||
|
||||
// Sync. Or, what goes by sync.
|
||||
{
|
||||
fsync(lug_u->fid_i); // fsync is almost useless, F_FULLFSYNC too slow
|
||||
}
|
||||
|
||||
return rec_u->ent_w;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user