Commit 3af2efc4 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4013 change lock timeout units from microseconds to milliseconds refs[t:4013]

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@35553 c7de825b-a66e-492c-adef-691d508d4ae1
parent d8f5494a
...@@ -422,7 +422,7 @@ static int tokudb_init_func(void *p) { ...@@ -422,7 +422,7 @@ static int tokudb_init_func(void *p) {
r = db_env->checkpointing_set_period(db_env, tokudb_checkpointing_period); r = db_env->checkpointing_set_period(db_env, tokudb_checkpointing_period);
assert(!r); 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); assert(r == 0);
r = db_create(&metadata_db, db_env, 0); r = db_create(&metadata_db, db_env, 0);
...@@ -1544,10 +1544,10 @@ static void tokudb_lock_timeout_update(THD * thd, ...@@ -1544,10 +1544,10 @@ static void tokudb_lock_timeout_update(THD * thd,
ulonglong * timeout = (ulonglong *) var; ulonglong * timeout = (ulonglong *) var;
*timeout = *(const ulonglong *) save; *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, static MYSQL_SYSVAR_ULONGLONG(lock_timeout, tokudb_lock_timeout,
0, "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