##// END OF EJS Templates
nodemap: only use persistent nodemap for non-inlined revlog...
marmoute -
r44791:daad3aac default
parent child Browse files
Show More
@@ -1965,6 +1965,7 b' class revlog(object):'
1965 # manager
1965 # manager
1966
1966
1967 tr.replace(self.indexfile, trindex * self._io.size)
1967 tr.replace(self.indexfile, trindex * self._io.size)
1968 nodemaputil.setup_persistent_nodemap(tr, self)
1968 self._chunkclear()
1969 self._chunkclear()
1969
1970
1970 def _nodeduplicatecallback(self, transaction, node):
1971 def _nodeduplicatecallback(self, transaction, node):
@@ -34,6 +34,8 b' def setup_persistent_nodemap(tr, revlog)'
34
34
35 (only actually persist the nodemap if this is relevant for this revlog)
35 (only actually persist the nodemap if this is relevant for this revlog)
36 """
36 """
37 if revlog._inline:
38 return # inlined revlog are too small for this to be relevant
37 if revlog.nodemap_file is None:
39 if revlog.nodemap_file is None:
38 return # we do not use persistent_nodemap on this revlog
40 return # we do not use persistent_nodemap on this revlog
39 callback_id = b"revlog-persistent-nodemap-%s" % revlog.nodemap_file
41 callback_id = b"revlog-persistent-nodemap-%s" % revlog.nodemap_file
General Comments 0
You need to be logged in to leave comments. Login now