Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f503daf9
Commit
f503daf9
authored
Sep 03, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env_from_string(): Added config.logdir to specify a different log
directory.
parent
36c9e522
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lib/python/BDBStorage/BerkeleyBase.py
lib/python/BDBStorage/BerkeleyBase.py
+7
-1
No files found.
lib/python/BDBStorage/BerkeleyBase.py
View file @
f503daf9
...
...
@@ -39,7 +39,7 @@ from bsddb3 import db
from
ZODB
import
POSException
from
ZODB.BaseStorage
import
BaseStorage
__version__
=
'$Revision: 1.1
8
$'
.
split
()[
-
2
:][
0
]
__version__
=
'$Revision: 1.1
9
$'
.
split
()[
-
2
:][
0
]
# Lock usage is inherently unbounded because there may be an unlimited number
# of objects actually touched in any single transaction, and worst case could
...
...
@@ -92,11 +92,15 @@ class BerkeleyConfig:
- kbytes is passed directly to txn_checkpoint()
- min is passed directly to txn_checkpoint()
- logdir if not None, is passed to the environment's set_lg_dir() method
before it is opened.
"""
numlocks
=
DEFAULT_MAX_LOCKS
interval
=
100
kbyte
=
0
min
=
0
logdir
=
None
...
...
@@ -321,6 +325,8 @@ def env_from_string(envname, config):
# already exists
env
=
db
.
DBEnv
()
env
.
set_lk_max_locks
(
config
.
numlocks
)
if
config
.
logdir
is
not
None
:
env
.
set_lg_dir
(
config
.
logdir
)
env
.
open
(
envname
,
db
.
DB_CREATE
# create underlying files as necessary
|
db
.
DB_RECOVER
# run normal recovery before opening
...
...
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