revlog: remove legacy usage of `_chunkcachesize`
All core code is now getting the setting from the DataConfig object.
--- 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: