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
96e10ef3
Commit
96e10ef3
authored
Dec 24, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ab66c933
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+1
-1
bigfile/tests/test_filezodb.py
bigfile/tests/test_filezodb.py
+10
-0
No files found.
bigfile/_file_zodb.pyx
View file @
96e10ef3
...
...
@@ -173,7 +173,7 @@ class ZSync:
"""
def
on_connection_resync
(
zsync
):
print
(
'
\
n
ZZZSync.resync %r %r'
%
(
zsync
.
zconn
,
zsync
.
wconn
))
#
print('\nZZZSync.resync %r %r' % (zsync.zconn, zsync.wconn))
#import traceback; traceback.print_stack()
zsync
.
wconn
.
resync
(
zconn_at
(
zsync
.
zconn
))
...
...
bigfile/tests/test_filezodb.py
View file @
96e10ef3
...
...
@@ -480,8 +480,18 @@ def _test_bigfile_filezodb_vs_cache_invalidation(_drop_cache):
#conn2._cache.minimize()
_drop_cache
(
conn2
)
# TODO change to just conn2._cache.minimize after issue is fixed
"""
print('
\
n
\
n
\
n
\
n
-----------------------------------
\
n
\
n
\
n
\
n
')
from wendelin.lib.zodb import zconn_at
from ZODB.utils import u64
print('
\
n
\
n
AAA conn2.at: @%d' % u64(zconn_at(conn2)))
"""
tm2
.
commit
()
# transaction boundary for t2
#print('BBB conn2.at: @%d\n\n' % u64(zconn_at(conn2)))
# data from tm1 should propagate -> ZODB -> ram pages for _ZBigFileH in conn2
assert
Blk
(
vma2
,
0
)[
0
]
==
2
...
...
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