This is an archive of the discontinued Mercurial Phabricator instance.

index: remove side-effect from failed nt_init()
ClosedPublic

Authored by martinvonz on Aug 7 2018, 2:26 AM.

Details

Summary

As pointed out by Yuya in the review of D4108, if we run into the
"overflow in nt_init" case (which I think normally happens only in
repos with at least 2^26=64Mi revisions), we would leave the node tree
half-initialized.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Aug 7 2018, 2:26 AM
This revision was automatically updated to reflect the committed changes.