Skip to content
Snippets Groups Projects
Commit 8e24f4f86ba8 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

mmap: fix another instance of reverse mmap logic in persistent nodemap

This fix the same kind of issue as 85d96517e650
parent c0e30a019ce1
No related branches found
No related tags found
1 merge request!875add safety to avoid mmap fiel from NFS (and another small fixes)
......@@ -239,7 +239,5 @@
fd.write(data)
if feed_data:
if use_mmap:
new_data = data
else:
fd.flush()
new_data = util.buffer(util.mmapread(fd, len(data)))
......@@ -244,5 +242,7 @@
fd.flush()
new_data = util.buffer(util.mmapread(fd, len(data)))
else:
new_data = data
target_docket.data_length = len(data)
target_docket.tip_rev = revlog.tiprev()
target_docket.tip_node = revlog.node(target_docket.tip_rev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment