HomePhabricator

nodemap: deal with data mmap error

Authored by marmoute.

Description

nodemap: deal with data mmap error

If the file is too small, the mmapread call would raise a ValueError. We catch
that and ignore nodemap content (as we do without mmap). This make the repository
slightly slower (until the next write) but usable. Unlike the current crash.

Differential Revision: https://phab.mercurial-scm.org/D10458

Details

Committed
marmouteApr 16 2021, 9:39 AM
Differential Revision
D10458: nodemap: deal with data mmap error
Parents
rHG99aed233aa8d: nodemap: test various corruption scenario for the persistent nodemap
Branches
Unknown
Tags
Unknown