[PATCH] journal: new expiremental extension

Martijn Pieters mj at zopatista.com
Wed Jun 22 06:17:37 EDT 2016


On 19 June 2016 at 15:32, Yuya Nishihara <yuya at tcha.org> wrote:
> Perhaps we'd better start without the shared vfs? The sharedpath directory
> isn't covered by repo.wlock, so the journal file could be corrupted.

Would using with self.vfs('journal', mode='a+b', atomictemp=True): be
sufficient here I wonder? In case of a race condition, that'd mean
that we lose one of the two new record entries, as opposed to outright
file corruption.

-- 
Martijn Pieters


More information about the Mercurial-devel mailing list