Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
c113d3c2
Commit
c113d3c2
authored
Dec 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0b072780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+7
-8
No files found.
bigfile/_file_zodb.pyx
View file @
c113d3c2
...
...
@@ -74,12 +74,11 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
def
storeblk
(
self
,
blk
,
buf
):
return
self
.
zself
.
storeblk
(
blk
,
buf
)
# blkmmapper returns pycapsule with virtmem mmapper for the file.
#
# XXX
#
# it is called from PyBigFile.fileh_open(mmap_overlay=True) and .zfile
# should be already associated with jar and have oid.
def
blkmmapper
(
_ZBigFile
zf
):
# it is called from under PyBigFile.fileh_open(mmap_overlay=True) and
# .zfile should be already associated with jar and have oid.
# make sure that WCFS file handle corresponding to ZBigFile is opened.
cdef
wcfs
.
PyFileH
pywfileh
if
zf
.
wfileh
==
nil
:
zconn
=
zf
.
zself
.
_p_jar
...
...
@@ -94,13 +93,13 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
# zf is ready to serve mmap requests via .wfileh
# return pycapsule with corresponding mmap methods.
#
# the capsule is not bound to particula _ZBigFile object because
# .mmap_* methods receive BigFile* argument which they upcas
e
t to _ZBigFile.
# the capsule is not bound to particula
r
_ZBigFile object because
# .mmap_* methods receive BigFile* argument which they upcast to _ZBigFile.
return
_ZBigFile_mmap_pycapsule
# _ZBigFile_mmap_pycapsule is pycapsule with functions that we give to
# PyBigFile for virtmem .mmap* ops.
# PyBigFile for
ZBigFile
virtmem .mmap* ops.
cdef
extern
from
"<wendelin/bigfile/file.h>"
nogil
:
struct
bigfile_ops
:
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment