fsync after pack

Well, this might help. Apparently "useless" was a bit too strong a word.
This commit is contained in:
Steve Dee 2014-04-21 18:59:09 -07:00
parent 292156b2be
commit 65e9634db1

View File

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