revlog: remove legacy usage of `_mmaplargeindex`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:02:24 +0200
changeset 51049 3977068c638c
parent 51048 59c6f99723b1
child 51050 0d33f4b0c4cb
revlog: remove legacy usage of `_mmaplargeindex` All core code is now getting the setting from the DataConfig object.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Oct 10 11:02:00 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:02:24 2023 +0200
@@ -628,7 +628,7 @@
             new_header = REVLOG_DEFAULT_VERSION
 
         mmapindexthreshold = None
-        if self._mmaplargeindex:
+        if self.data_config.mmap_large_index:
             mmapindexthreshold = self.data_config.mmap_index_threshold
         if self.feature_config.enable_ellipsis:
             self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor