##// 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 48 docket.data_unused = data_unused
49 49
50 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 52 try:
53 53 with revlog.opener(filename) as fd:
54 54 if use_mmap:
@@ -132,7 +132,7 b' def _persist_nodemap(tr, revlog, pending'
132 132 can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental")
133 133 ondisk_docket = revlog._nodemap_docket
134 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 137 data = None
138 138 # first attemp an incremental update of the data
General Comments 0
You need to be logged in to leave comments. Login now