[PATCH] journal: new expiremental extension

Martijn Pieters mj at zopatista.com
Thu Jun 23 13:12:25 EDT 2016


On 23 June 2016 at 15:51, Yuya Nishihara <yuya at tcha.org> wrote:
> I think it's okay to write journal without locking and rename it atomically.
> IIRC, some cache files are saved without wlock.
>
> If we want to make the journal 100% consistent, we'll need a lock. If we
> just want to avoid data corruption, atomictemp will work.

Yeah, I have worked out an approach now; wlock is held for both the
local and the shared repository. The bigger problem was how working
copy changes should be handled when the share extension is used.
That's solved now too. My initial patch has evolved considerably
because of this; the atomictempfile patches are related to this.

-- 
Martijn Pieters


More information about the Mercurial-devel mailing list