Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
cce3284d
Commit
cce3284d
authored
Sep 23, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug: cache settings were not propigated to
the actual caches.
parent
a15b9f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
src/ZODB/DB.py
src/ZODB/DB.py
+24
-5
No files found.
src/ZODB/DB.py
View file @
cce3284d
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.1
6 1999/08/27 20:38:03
jim Exp $"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
$Id: DB.py,v 1.1
7 1999/09/23 16:40:01
jim Exp $"""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
cPickle
,
cStringIO
,
sys
,
POSException
from
Connection
import
Connection
...
...
@@ -513,16 +513,35 @@ class DB:
def
pack
(
self
,
t
):
self
.
_storage
.
pack
(
t
,
referencesf
)
def
setCacheDeactivateAfter
(
self
,
v
):
self
.
_cache_deactivate_after
=
v
def
setCacheSize
(
self
,
v
):
self
.
_cache_size
=
v
def
setCacheDeactivateAfter
(
self
,
v
):
self
.
_cache_deactivate_after
=
v
for
c
in
self
.
_pools
[
0
][
''
][
1
]:
c
.
_cache
.
cache_age
=
v
def
setCacheSize
(
self
,
v
):
self
.
_cache_size
=
v
for
c
in
self
.
_pools
[
0
][
''
][
1
]:
c
.
_cache
.
cache_size
=
v
def
setClassFactory
(
self
,
factory
):
self
.
_classFactory
=
factory
def
setPoolSize
(
self
,
v
):
self
.
_pool_size
=
v
def
setVersionCacheDeactivateAfter
(
self
,
v
):
self
.
_version_cache_deactivate_after
=
v
def
setVersionCacheSize
(
self
,
v
):
self
.
_version_cache_size
=
v
for
ver
in
self
.
_pools
[
0
].
keys
():
if
ver
:
for
c
in
self
.
_pools
[
0
][
ver
][
1
]:
c
.
_cache
.
cache_age
=
v
def
setVersionCacheSize
(
self
,
v
):
self
.
_version_cache_size
=
v
for
ver
in
self
.
_pools
[
0
].
keys
():
if
v
:
for
c
in
self
.
_pools
[
0
][
ver
][
1
]:
c
.
_cache
.
cache_size
=
v
def
setVersionPoolSize
(
self
,
v
):
self
.
_version_pool_size
=
v
def
cacheStatistics
(
self
):
return
()
# :(
...
...
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