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
80736395
Commit
80736395
authored
Dec 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
80987dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
bigfile/file_zodb.py
bigfile/file_zodb.py
+27
-4
No files found.
bigfile/file_zodb.py
View file @
80736395
...
...
@@ -127,6 +127,27 @@ will be our future approach after we teach NEO about object deduplication.
#
# TODO add top-level overview
#
# zfile (ZBigFile)
# .blksize
# .blktab LOBTree #blk -> ZBlk*
#
# ._v_file _ZBigFile
# ._v_filehset weakset(_ZBigFileH) created for zfile
#
# zfileh (_ZBigFileH)
#
# ZBigFile is kept as Live persistent because XXX
#
#
# DB -> ZBlk.blkdata (-> memory-page)
# (DB <- ) ZBlk.blkdata <- memory-page
#
# (DB -> invalidate ZBlk.blkdata -> invalidate memory-page)
# + FIXME topology changes are not handled correctly
# + FIXME ZBlk is ghostified
#
#
#
# As file pages are changed in RAM with changes being managed by virtmem
# subsystem, we need to propagate the changes to ZODB objects back at some time.
#
...
...
@@ -630,6 +651,9 @@ class ZBigFile(LivePersistent):
# - True -> use wcfs
# - False -> don't use wcfs
# - not set -> behave according to global default
#
# XXX several fileh could be opened for one ZBigFile. Is it useful at all?
# normally in one zconn there is only one zfileh opened for zfile.
def
fileh_open
(
self
,
_use_wcfs
=
None
):
if
_use_wcfs
is
None
:
_use_wcfs
=
self
.
_default_use_wcfs
()
...
...
@@ -730,13 +754,12 @@ Connection.open = Connection_open
@
implementer
(
ISynchronizer
)
class
_ZBigFileH
(
object
):
# .zfile ZBigFile we were opened for
#
# .wcfileh handle for ZBigFile in wcfs | None
# .wcfileh handle for ZBigFile in wcfs | None
# .zfileh handle for ZBigFile (overlayed over .wcfileh if .wcfileh != ø)
# def __init__(self, zfile, wcfileh):
def
__init__
(
self
,
zfile
,
wc
):
# wc: wcfs.WCFS | None
def
__init__
(
self
,
zfile
,
wcfileh
):
self
.
zfile
=
zfile
#
self.wcfileh = wcfileh
self
.
wcfileh
=
wcfileh
self
.
zfileh
=
zfile
.
_v_file
.
fileh_open
()
# XXX pass wcfileh in
# 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