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
f046f723
Commit
f046f723
authored
Dec 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0d1ab0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bigfile/file_zodb.py
bigfile/file_zodb.py
+6
-2
No files found.
bigfile/file_zodb.py
View file @
f046f723
...
...
@@ -757,13 +757,13 @@ Connection.open = Connection_open
@
implementer
(
ISynchronizer
)
class
_ZBigFileH
(
object
):
# .zfile ZBigFile we were opened for
# .wcfileh handle for ZBigFile@zconn.at view in wcfs | None
#
# .wcfileh handle for ZBigFile@zconn.at view in wcfs | None
# .zfileh handle for ZBigFile in virtmem (overlayed over .wcfileh if .wcfileh != ø)
def
__init__
(
self
,
zfile
,
wcfileh
):
self
.
zfile
=
zfile
self
.
wcfileh
=
wcfileh
self
.
zfileh
=
zfile
.
_v_file
.
fileh_open
()
# XXX pass wcfileh in
self
.
zfileh
=
zfile
.
_v_file
.
fileh_open
(
wcfileh
)
# XXX pass wcfileh in
# FIXME zfile._p_jar could be None (ex. ZBigFile is newly created
# before first commit)
...
...
@@ -788,6 +788,8 @@ class _ZBigFileH(object):
# it on every open.
self
.
zfile
.
_p_jar
.
onCloseCallback
(
self
.
on_connection_close
)
# XXX resync wconn/wcfileh ?
# attach us to Connection's transaction manager:
#
# Hook into txn_manager so that we get a chance to run before
...
...
@@ -816,6 +818,8 @@ class _ZBigFileH(object):
# NOTE open callbacks are setup once and fire on every open - we don't
# need to resetup them here.
# XXX close wcfileh?
# ~~~~ BigFileH wrapper ~~~~
def
mmap
(
self
,
pgoffset
,
pglen
):
return
self
.
zfileh
.
mmap
(
pgoffset
,
pglen
)
...
...
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