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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
ab66c933
Commit
ab66c933
authored
Dec 24, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
623c7f78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+2
-1
lib/zodb.py
lib/zodb.py
+1
-0
No files found.
bigfile/_file_zodb.pyx
View file @
ab66c933
...
...
@@ -173,7 +173,8 @@ class ZSync:
"""
def
on_connection_resync
(
zsync
):
print
(
'ZSync.resync %r %r'
%
(
zsync
.
zconn
,
zsync
.
wconn
))
print
(
'
\
n
ZZZSync.resync %r %r'
%
(
zsync
.
zconn
,
zsync
.
wconn
))
#import traceback; traceback.print_stack()
zsync
.
wconn
.
resync
(
zconn_at
(
zsync
.
zconn
))
# TODO zconn dealloc -> wconn.close
lib/zodb.py
View file @
ab66c933
...
...
@@ -203,6 +203,7 @@ def Connection_onResyncCallback(self, f):
# NOTE WeakSet does not work for bound methods - they are always created
# anew for each obj.method access, and thus will go away almost immediately
self
.
_onResyncCallbacks
=
WeakSet
()
self
.
_onResyncCallbacks
.
add
(
f
)
assert
not
hasattr
(
ZODB
.
Connection
.
Connection
,
'onResyncCallback'
)
ZODB
.
Connection
.
Connection
.
onResyncCallback
=
Connection_onResyncCallback
...
...
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