revlog: remove legacy usage of `_chunkcachesize`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:04:40 +0200
changeset 51051 21ef03239f43
parent 51050 0d33f4b0c4cb
child 51052 e80e2d614c9d
revlog: remove legacy usage of `_chunkcachesize` All core code is now getting the setting from the DataConfig object.
mercurial/revlog.py
--- 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: