Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master-1, master-0, and 0.9.4

Remove mmap offset parameter use for now, as it appears to be broken and I have no good way to test it.

Changeset 6b3f2b78f28c

Parent 2643a6b8935e

by Jelmer Vernooij

Changes to one file · Browse files at 6b3f2b78f28c Showing diff from parent 2643a6b8935e Diff from another changeset...

Change 1 of 1 Show Entire File dulwich/​pack.py Stacked
 
107
108
109
110
111
112
113
114
115
116
 
 
117
118
119
 
107
108
109
 
 
 
 
 
 
 
110
111
112
113
114
@@ -107,13 +107,8 @@
  :param access: Access mechanism.   :return: MMAP'd area.   """ - if supports_mmap_offset: - return (mmap.mmap(f.fileno(), size, access=access, - offset=int(offset / mmap.ALLOCATIONGRANULARITY)), - (offset % mmap.ALLOCATIONGRANULARITY)) - else: - mem = mmap.mmap(f.fileno(), size+offset, access=access) - return mem, offset + mem = mmap.mmap(f.fileno(), size+offset, access=access) + return mem, offset      def load_pack_index(filename):