Show More
@@ -206,11 +206,11 b' def persist_nodemap(tr, revlog, pending=' | |||||
206 | fd.write(data) |
|
206 | fd.write(data) | |
207 | if feed_data: |
|
207 | if feed_data: | |
208 | if use_mmap: |
|
208 | if use_mmap: | |
|
209 | fd.flush() | |||
|
210 | new_data = util.buffer(util.mmapread(fd, new_length)) | |||
|
211 | else: | |||
209 | fd.seek(0) |
|
212 | fd.seek(0) | |
210 | new_data = fd.read(new_length) |
|
213 | new_data = fd.read(new_length) | |
211 | else: |
|
|||
212 | fd.flush() |
|
|||
213 | new_data = util.buffer(util.mmapread(fd, new_length)) |
|
|||
214 | target_docket.data_length = new_length |
|
214 | target_docket.data_length = new_length | |
215 | target_docket.data_unused = new_unused |
|
215 | target_docket.data_unused = new_unused | |
216 |
|
216 |
General Comments 0
You need to be logged in to leave comments.
Login now