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
695dd334
Commit
695dd334
authored
Aug 12, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure current transaction is aborted on close.
XXX This makes CommitLockTests pass on Win2k for me.
parent
1f9a2369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+7
-0
No files found.
src/ZEO/StorageServer.py
View file @
695dd334
...
@@ -115,6 +115,8 @@ class StorageServer:
...
@@ -115,6 +115,8 @@ class StorageServer:
removed
=
1
removed
=
1
class
ZEOStorage
:
class
ZEOStorage
:
"""Proxy to underlying storage for a single remote client."""
def
__init__
(
self
,
server
):
def
__init__
(
self
,
server
):
self
.
server
=
server
self
.
server
=
server
self
.
client
=
None
self
.
client
=
None
...
@@ -124,6 +126,11 @@ class ZEOStorage:
...
@@ -124,6 +126,11 @@ class ZEOStorage:
self
.
_transaction
=
None
self
.
_transaction
=
None
def
close
(
self
):
def
close
(
self
):
# When this storage closes, we must ensure that it aborts
# any pending transaction. Not sure if this is the clearest way.
if
self
.
_transaction
is
not
None
:
self
.
__storage
.
tpc_abort
(
self
.
_transaction
)
self
.
_transaction
is
None
self
.
_conn
.
close
()
self
.
_conn
.
close
()
def
notifyConnected
(
self
,
conn
):
def
notifyConnected
(
self
,
conn
):
...
...
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