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
17311c67
Commit
17311c67
authored
Mar 04, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only pass argument to full_sweep() when one is passed by caller.
Add a few comments.
parent
f571af39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/ZODB/Connection.py
src/ZODB/Connection.py
+11
-4
No files found.
src/ZODB/Connection.py
View file @
17311c67
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.13
3 2004/03/02 16:25:07
jeremy Exp $"""
$Id: Connection.py,v 1.13
4 2004/03/04 16:15:55
jeremy Exp $"""
import
logging
import
sys
...
...
@@ -102,7 +102,7 @@ class Connection(ExportImport, object):
XXX Mention the database pool.
$Id: Connection.py,v 1.13
3 2004/03/02 16:25:07
jeremy Exp $
$Id: Connection.py,v 1.13
4 2004/03/04 16:15:55
jeremy Exp $
@group User Methods: root, get, add, close, db, sync, isReadOnly,
cacheGC, cacheFullSweep, cacheMinimize, getVersion, modifiedInVersion
...
...
@@ -194,6 +194,10 @@ class Connection(ExportImport, object):
def
setLocalTransaction
(
self
):
"""Use a transaction bound to the connection rather than the thread"""
# XXX mention that this should only be called when you open
# a connection or at transaction boundaries (but the lattter are
# hard to be sure about).
if
self
.
_transaction
is
None
:
self
.
_transaction
=
Transaction
()
return
self
.
_transaction
...
...
@@ -371,11 +375,14 @@ class Connection(ExportImport, object):
# XXX we should test what happens when these methods are called
# mid-transaction.
def
cacheFullSweep
(
self
,
dt
=
0
):
def
cacheFullSweep
(
self
,
dt
=
None
):
# XXX needs doc string
warnings
.
warn
(
"cacheFullSweep is deprecated. "
"Use cacheMinimize instead."
,
DeprecationWarning
)
self
.
_cache
.
full_sweep
(
dt
)
if
dt
is
None
:
self
.
_cache
.
full_sweep
()
else
:
self
.
_cache
.
full_sweep
(
dt
)
def
cacheMinimize
(
self
,
dt
=
None
):
"""Deactivate all unmodified objects in the cache.
...
...
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