Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
5eccd5f1
Commit
5eccd5f1
authored
Dec 17, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change in maxlocks with no effect, and catch in open
parent
8d55ab5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
wb/lib/wb/src/wb_db.cpp
wb/lib/wb/src/wb_db.cpp
+16
-13
No files found.
wb/lib/wb/src/wb_db.cpp
View file @
5eccd5f1
...
...
@@ -703,12 +703,12 @@ void wb_db_dbody::iter(wb_import &i)
}
wb_db
::
wb_db
()
:
m_vid
(
pwr_cNVid
)
m_vid
(
pwr_cNVid
)
,
m_txn
(
0
)
{
}
wb_db
::
wb_db
(
pwr_tVid
vid
)
:
m_vid
(
vid
)
m_vid
(
vid
)
,
m_txn
(
0
)
{
}
...
...
@@ -913,7 +913,7 @@ void wb_db::openDb(bool useTxn)
m_env
->
set_cachesize
(
0
,
256
*
1024
*
1024
,
0
);
rc
=
m_env
->
set_lg_bsize
(
1024
*
1024
*
2
);
rc
=
m_env
->
set_lg_max
(
1024
*
1024
*
8
*
2
);
rc
=
m_env
->
set_lk_max_locks
(
50000
0
);
rc
=
m_env
->
set_lk_max_locks
(
50000
);
// Decreased from 500000
rc
=
m_env
->
set_lk_max_objects
(
20000
);
#if 0
...
...
@@ -924,6 +924,7 @@ void wb_db::openDb(bool useTxn)
}
#endif
try
{
if
(
useTxn
)
{
m_env
->
open
(
m_fileName
,
DB_CREATE
|
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_RECOVER
,
...
...
@@ -933,7 +934,9 @@ void wb_db::openDb(bool useTxn)
DB_CREATE
|
DB_INIT_MPOOL
|
DB_PRIVATE
,
S_IRUSR
|
S_IWUSR
);
}
}
catch
(
DbException
&
e
)
{
printf
(
"m_env->open, %s
\n
"
,
e
.
what
());
}
printstat
(
m_env
,
"after open env"
);
m_t_ohead
=
new
Db
(
m_env
,
0
);
...
...
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