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
c14872b1
Commit
c14872b1
authored
Dec 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ba1a7af4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
bigfile/file_zodb.py
bigfile/file_zodb.py
+11
-9
No files found.
bigfile/file_zodb.py
View file @
c14872b1
...
...
@@ -521,9 +521,10 @@ class _ZBigFile(BigFile):
obj
.
zself
=
zself
return
obj
# redirect load/store to main class
# redirect load/store
/mapper
to main class
def
loadblk
(
self
,
blk
,
buf
):
return
self
.
zself
.
loadblk
(
blk
,
buf
)
def
storeblk
(
self
,
blk
,
buf
):
return
self
.
zself
.
storeblk
(
blk
,
buf
)
# XXX blkmapper()
...
...
@@ -636,19 +637,20 @@ class ZBigFile(LivePersistent):
zblk
.
bindzfile
(
self
,
blk
)
# blkmmapper complemnts loadblk/storeblk and returns object with pycapsule with .mmap*
# methods to be used by virtmem to mmap base overlay of the file data. XXX text
def
blkmmapper
(
self
):
# XXX return wcfileh (= zconn.wconn.open(self._p_oid))
1
/
0
# invalidate data .blktab[blk] invalidated -> invalidate page
def
invalidateblk
(
self
,
blk
):
for
fileh
in
self
.
_v_filehset
:
fileh
.
invalidate_page
(
blk
)
# XXX assumes blksize == pagesize
# mmaper complemnts loadblk/storeblk and returns object with pycapsule with .mmap*
# methods to be used by virtmem to mmap base overlay of the file data. XXX text
def
mmaper
(
self
):
# XXX return wcfileh (= zconn.wconn.open(self._p_oid))
1
/
0
# fileh_open is bigfile-like method that creates new file-handle object
# that is given to user for mmap.
#
...
...
@@ -770,7 +772,7 @@ class _ZBigFileH(object):
self
.
zfile
=
zfile
self
.
wcfileh
=
wcfileh
#self.zfileh = zfile._v_file.fileh_open(wcfileh) # XXX pass wcfileh in
# XXX no - BigFile should fetch wcfileh itself from ZBigFile by calling ZBigFile.mmapper()
# XXX no - BigFile should fetch wcfileh itself from ZBigFile by calling ZBigFile.
blk
mmapper()
self
.
zfileh
=
zfile
.
_v_file
.
fileh_open
()
# FIXME zfile._p_jar could be None (ex. ZBigFile is newly created
...
...
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