changeset 51056:21ef03239f43

revlog: remove legacy usage of `_chunkcachesize` 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:04:40 +0200
parents 0d33f4b0c4cb
children e80e2d614c9d
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Oct 10 11:04:07 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:04:40 2023 +0200
@@ -929,13 +929,13 @@
         self._segmentfile = randomaccessfile.randomaccessfile(
             self.opener,
             (self._indexfile if self._inline else self._datafile),
-            self._chunkcachesize,
+            self.data_config.chunk_cache_size,
             chunkcache,
         )
         self._segmentfile_sidedata = randomaccessfile.randomaccessfile(
             self.opener,
             self._sidedatafile,
-            self._chunkcachesize,
+            self.data_config.chunk_cache_size,
         )
         # revnum -> (chain-length, sum-delta-length)
         self._chaininfocache = util.lrucachedict(500)
@@ -2423,7 +2423,7 @@
             self._segmentfile = randomaccessfile.randomaccessfile(
                 self.opener,
                 self._datafile,
-                self._chunkcachesize,
+                self.data_config.chunk_cache_size,
             )
 
             if existing_handles: