mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
Make test_log5 use set_lk_max_locks. Addresses #366.
git-svn-id: file:///svn/tokudb@2207 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
10062269c7
commit
b4537afb5f
1 changed files with 4 additions and 1 deletions
|
@ -29,9 +29,12 @@ static void make_db (void) {
|
|||
int r;
|
||||
int i;
|
||||
|
||||
int maxcount = 24073;
|
||||
|
||||
system("rm -rf " DIR);
|
||||
r=mkdir(DIR, 0777); assert(r==0);
|
||||
r=db_env_create(&env, 0); assert(r==0);
|
||||
r=env->set_lk_max_locks(env, 2*maxcount); 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=env->txn_begin(env, 0, &tid, 0); assert(r==0);
|
||||
|
@ -39,7 +42,7 @@ static void make_db (void) {
|
|||
r=tid->commit(tid, 0); assert(r==0);
|
||||
r=env->txn_begin(env, 0, &tid, 0); assert(r==0);
|
||||
|
||||
for (i=0; i<24073; i++) {
|
||||
for (i=0; i<maxcount; i++) {
|
||||
char hello[30], there[30];
|
||||
DBT key,data;
|
||||
struct in_db *newitem = malloc(sizeof(*newitem));
|
||||
|
|
Loading…
Add table
Reference in a new issue