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
nexedi
ZODB
Commits
44eac704
Commit
44eac704
authored
Jun 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Lock from utils, rather than threading to ease future debugging
parent
e9c4ca40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/ZODB/mvccadapter.py
src/ZODB/mvccadapter.py
+3
-5
No files found.
src/ZODB/mvccadapter.py
View file @
44eac704
...
...
@@ -6,12 +6,10 @@ and start time and moves it into a storage adapter. This allows ZODB
to treat Relstoage and other storages in pretty much the same way and
also simplifies the implementation of the DB and Connection classes.
"""
import
threading
import
zope.interface
from
.
import
interfaces
,
serialize
,
POSException
from
.utils
import
p64
,
u64
from
.utils
import
p64
,
u64
,
Lock
class
Base
(
object
):
...
...
@@ -61,7 +59,7 @@ class MVCCAdapter(Base):
def
__init__
(
self
,
storage
):
Base
.
__init__
(
self
,
storage
)
self
.
_instances
=
set
()
self
.
_lock
=
threading
.
Lock
()
self
.
_lock
=
Lock
()
if
hasattr
(
storage
,
'registerDB'
):
storage
.
registerDB
(
self
)
...
...
@@ -121,7 +119,7 @@ class MVCCAdapterInstance(Base):
def
__init__
(
self
,
base
):
self
.
_base
=
base
Base
.
__init__
(
self
,
base
.
_storage
)
self
.
_lock
=
threading
.
Lock
()
self
.
_lock
=
Lock
()
self
.
_invalidations
=
set
()
self
.
_start
=
None
# Transaction start time
self
.
_sync
=
getattr
(
self
.
_storage
,
'sync'
,
lambda
:
None
)
...
...
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