changeset 51054:3977068c638c

revlog: remove legacy usage of `_mmaplargeindex` All core code is now getting the setting from the DataConfig object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 11:02:24 +0200
parents 59c6f99723b1
children 0d33f4b0c4cb
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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