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
0b99fa5e
Commit
0b99fa5e
authored
Jul 08, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c51a5e18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
bigfile/file_zodb.py
bigfile/file_zodb.py
+8
-2
No files found.
bigfile/file_zodb.py
View file @
0b99fa5e
...
...
@@ -78,6 +78,8 @@ done by kernel, where we cannot get callback on a page-dirtying, it is more
natural to also use "2" here.
"""
# FIXME ^^^ doc is horrible - add top-level up->down overview.
from
wendelin.bigfile
import
BigFile
,
WRITEOUT_STORE
,
WRITEOUT_MARKSTORED
from
wendelin
import
wcfs
# XXX -> wendelin.bigfile.wcfs ?
from
wendelin.lib.mem
import
bzero
,
memcpy
...
...
@@ -456,7 +458,8 @@ class LivePersistent(Persistent):
# NOTE _p_invalidate() is triggered on invalidations. We do not override it.
# ZBigFile implements BigFile backend with data stored in ZODB.
#
# NOTE Can't inherit from Persistent and BigFile at the same time - both are C
# types and their layout conflict. Persistent must be here for object to be
# tracked -> BigFile is moved to a data member (the same way and for the same
...
...
@@ -545,7 +548,8 @@ class ZBigFile(LivePersistent):
# bigfile-like
# fileh_open is bigfile-like method that creates new file-handle object
# that is given to user for mmap.
#
# _use_wcfs is internal option and controls whether to use wcfs to access
# ZBigFile data:
...
...
@@ -610,6 +614,8 @@ Connection.open = Connection_open
# BigFileH wrapper that also acts as DataManager proxying changes back to ZODB
# objects at two-phase-commit (TPC) level.
# XXX and ZODB -> virtmem invalidation.
# XXX split into _ZBigFileH + _ZSync ?
#
# NOTE several fileh can be opened for ZBigFile - and this does not
# conflict with the way ZODB organises its work - just for fileh
...
...
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