Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
bd980083
Commit
bd980083
authored
8 years ago
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a small race by processing invalidations after calling lastTransaction.
parent
44d71a17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+3
-3
No files found.
src/ZODB/Connection.py
View file @
bd980083
...
...
@@ -785,6 +785,9 @@ class Connection(ExportImport, object):
getattr
(
self
.
_storage
,
'sync'
,
noop
)()
mvc_invalidated
=
None
if
self
.
opened
:
self
.
_txn_time
=
p64
(
u64
(
self
.
_storage
.
lastTransaction
())
+
1
)
with
self
.
_inv_lock
:
# Non-ghostifiable objects may need to read when they are
# invalidated, so we'll quickly just replace the
...
...
@@ -821,9 +824,6 @@ class Connection(ExportImport, object):
invalidated
=
dict
.
fromkeys
(
self
.
_invalidated
)
self
.
_invalidated
=
set
()
if
self
.
opened
:
self
.
_txn_time
=
p64
(
u64
(
self
.
_storage
.
lastTransaction
())
+
1
)
if
mvc_invalidated
:
self
.
_cache
.
invalidate
(
mvc_invalidated
)
self
.
_cache
.
invalidate
(
invalidated
)
...
...
This diff is collapsed.
Click to expand it.
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