Commit 7698f060 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4013 restore changes from 35553 refs[t:4013]

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@35759 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9727adf6
......@@ -422,7 +422,7 @@ static int tokudb_init_func(void *p) {
r = db_env->checkpointing_set_period(db_env, tokudb_checkpointing_period);
assert(!r);
r = db_env->set_lock_timeout(db_env, tokudb_lock_timeout * 1000);
r = db_env->set_lock_timeout(db_env, tokudb_lock_timeout);
assert(r == 0);
r = db_create(&metadata_db, db_env, 0);
......@@ -1544,10 +1544,10 @@ static void tokudb_lock_timeout_update(THD * thd,
ulonglong * timeout = (ulonglong *) var;
*timeout = *(const ulonglong *) save;
db_env->set_lock_timeout(db_env, *timeout * 1000);
db_env->set_lock_timeout(db_env, *timeout);
}
#define DEFAULT_LOCK_TIMEOUT_MSEC (4UL * 1000)
#define DEFAULT_LOCK_TIMEOUT_MSEC 4000
static MYSQL_SYSVAR_ULONGLONG(lock_timeout, tokudb_lock_timeout,
0, "TokuDB lock timeout",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment