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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
956c0012
Commit
956c0012
authored
Dec 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e3952ffb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+3
-2
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+1
-1
No files found.
bigfile/_file_zodb.pyx
View file @
956c0012
...
...
@@ -106,11 +106,12 @@ cdef extern from "<wendelin/bigfile/file.h>" nogil:
pass
cdef
extern
from
*
nogil
:
"""
extern bigfile_ops ZBigFile_mmap_ops;
extern
const
bigfile_ops ZBigFile_mmap_ops;
"""
const
bigfile_ops
ZBigFile_mmap_ops
from
cpython
cimport
PyCapsule_New
cdef
object
_ZBigFile_mmap_pycapsule
=
PyCapsule_New
(
&
ZBigFile_mmap_ops
,
"bigfile.blkmmaper"
,
NULL
)
cdef
object
_ZBigFile_mmap_pycapsule
=
PyCapsule_New
(
<
void
*>&
ZBigFile_mmap_ops
,
"bigfile.blkmmaper"
,
NULL
)
# pywconnOf establishes and returns (py) wcfs.Conn associated with zconn.
...
...
bigfile/file_zodb.cpp
View file @
956c0012
...
...
@@ -68,7 +68,7 @@ static void zfile_munmap(VMA *vma, BigFile *file) {
}
//
const VirtMMapper zfile_mmapper = {
//
NOTE reusing whole bigfile_ops for just .mmap* ops.
const
bigfile_ops
ZBigFile_mmap_ops
=
{
.
mmap_setup_read
=
zfile_mmap_setup_read
,
.
remmap_blk_read
=
zfile_remmap_blk_read
,
...
...
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