Commit Graph

3 Commits

Author SHA1 Message Date
Brad Fitzpatrick 2bc4b5075f readerutil: fix OpenSingle bug causing "bad file descriptor" in dispacked.
Simplifies the code a bit, even though locking is a bit more coarse
now. We can make it faster later if it matters, especially now that
there's a test (which reliably failed before this fix).

Fixes camlistore.org/issue/264

Change-Id: Ifac79728f6a105ba76a60997c55c5d7d818f6f71
2013-12-24 10:57:06 -08:00
Brad Fitzpatrick da1abea89e readerutil: fix atomic alignment for 32-bit platforms
Change-Id: I10eb60a9abbbaf5aeccb1eba9592ff5d354d7985
2013-12-02 19:01:44 -08:00
Brad Fitzpatrick a58dcc1e5a diskpacked: re-use fds when possible when reading blobs from pack files.
We could actually do better than this and use the fd already open
from the still-appending file, or just keep one fd open per pack
file.

But this is a start.

Change-Id: I164a9bdf44987c3f057872cc7fdee1735f9e89a9
2013-10-10 20:06:30 -10:00