Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
nexedi
MariaDB
Commits
c2b0e9b7
Commit
c2b0e9b7
authored
Feb 19, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close #425
git-svn-id:
file:///svn/tokudb@2349
c7de825b-a66e-492c-adef-691d508d4ae1
parent
9cde720e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/tests/test_set_lk_max_locks.c
src/tests/test_set_lk_max_locks.c
+8
-1
src/ydb.c
src/ydb.c
+1
-0
No files found.
src/tests/test_set_lk_max_locks.c
View file @
c2b0e9b7
...
@@ -26,8 +26,15 @@ static void make_db (int n_locks) {
...
@@ -26,8 +26,15 @@ static void make_db (int n_locks) {
system
(
"rm -rf "
DIR
);
system
(
"rm -rf "
DIR
);
r
=
mkdir
(
DIR
,
0777
);
assert
(
r
==
0
);
r
=
mkdir
(
DIR
,
0777
);
assert
(
r
==
0
);
r
=
db_env_create
(
&
env
,
0
);
assert
(
r
==
0
);
r
=
db_env_create
(
&
env
,
0
);
assert
(
r
==
0
);
if
(
n_locks
>
0
)
if
(
n_locks
>
0
)
{
r
=
env
->
set_lk_max_locks
(
env
,
n_locks
);
CKERR
(
r
);
r
=
env
->
set_lk_max_locks
(
env
,
n_locks
);
CKERR
(
r
);
/* test the get_lk_max_locks method */
u_int32_t
set_locks
;
r
=
env
->
get_lk_max_locks
(
env
,
0
);
assert
(
r
==
EINVAL
);
r
=
env
->
get_lk_max_locks
(
env
,
&
set_locks
);
assert
(
r
==
0
&&
set_locks
==
n_locks
);
}
r
=
env
->
open
(
env
,
DIR
,
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_CREATE
|
DB_PRIVATE
,
0777
);
CKERR
(
r
);
r
=
env
->
open
(
env
,
DIR
,
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_CREATE
|
DB_PRIVATE
,
0777
);
CKERR
(
r
);
r
=
db_create
(
&
db
,
env
,
0
);
CKERR
(
r
);
r
=
db_create
(
&
db
,
env
,
0
);
CKERR
(
r
);
r
=
env
->
txn_begin
(
env
,
0
,
&
tid
,
0
);
assert
(
r
==
0
);
r
=
env
->
txn_begin
(
env
,
0
,
&
tid
,
0
);
assert
(
r
==
0
);
...
...
src/ydb.c
View file @
c2b0e9b7
...
@@ -634,6 +634,7 @@ static int toku_env_create(DB_ENV ** envp, u_int32_t flags) {
...
@@ -634,6 +634,7 @@ static int toku_env_create(DB_ENV ** envp, u_int32_t flags) {
result
->
set_lg_dir
=
locked_env_set_lg_dir
;
result
->
set_lg_dir
=
locked_env_set_lg_dir
;
result
->
set_lg_max
=
locked_env_set_lg_max
;
result
->
set_lg_max
=
locked_env_set_lg_max
;
result
->
set_lk_max_locks
=
locked_env_set_lk_max_locks
;
result
->
set_lk_max_locks
=
locked_env_set_lk_max_locks
;
result
->
get_lk_max_locks
=
locked_env_get_lk_max_locks
;
result
->
set_cachesize
=
locked_env_set_cachesize
;
result
->
set_cachesize
=
locked_env_set_cachesize
;
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
result
->
get_cachesize
=
locked_env_get_cachesize
;
result
->
get_cachesize
=
locked_env_get_cachesize
;
...
...
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