##// END OF EJS Templates
nodemap: access the mmap opener option using bytes...
marmoute -
r45187:0792ad55 default
parent child Browse files
Show More
@@ -48,7 +48,7 b' def persisted_data(revlog):'
48 docket.data_unused = data_unused
48 docket.data_unused = data_unused
49
49
50 filename = _rawdata_filepath(revlog, docket)
50 filename = _rawdata_filepath(revlog, docket)
51 use_mmap = revlog.opener.options.get("exp-persistent-nodemap.mmap")
51 use_mmap = revlog.opener.options.get(b"exp-persistent-nodemap.mmap")
52 try:
52 try:
53 with revlog.opener(filename) as fd:
53 with revlog.opener(filename) as fd:
54 if use_mmap:
54 if use_mmap:
@@ -132,7 +132,7 b' def _persist_nodemap(tr, revlog, pending'
132 can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental")
132 can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental")
133 ondisk_docket = revlog._nodemap_docket
133 ondisk_docket = revlog._nodemap_docket
134 feed_data = util.safehasattr(revlog.index, "update_nodemap_data")
134 feed_data = util.safehasattr(revlog.index, "update_nodemap_data")
135 use_mmap = revlog.opener.options.get("exp-persistent-nodemap.mmap")
135 use_mmap = revlog.opener.options.get(b"exp-persistent-nodemap.mmap")
136
136
137 data = None
137 data = None
138 # first attemp an incremental update of the data
138 # first attemp an incremental update of the data
General Comments 0
You need to be logged in to leave comments. Login now