Commit ff250caf authored by Yoni Fogel's avatar Yoni Fogel

Updated svn:ignores

toku_env_set_lk_max (when it exists)
is now an alias for toku_env_set_lk_max_locks


git-svn-id: file:///svn/tokudb@2266 c7de825b-a66e-492c-adef-691d508d4ae1
parent a4941c8c
......@@ -563,11 +563,17 @@ static int toku_env_set_lk_detect(DB_ENV * env, u_int32_t detect) {
return do_error(env, EINVAL, "TokuDB does not (yet) support set_lk_detect\n");
}
static int toku_env_set_lk_max_locks(DB_ENV *dbenv, u_int32_t max) {
HANDLE_PANICKED_ENV(dbenv);
if (env_opened(dbenv)) return EINVAL;
if (!max) return EINVAL;
dbenv->i->max_locks = max;
return 0;
}
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR <= 4
static int toku_env_set_lk_max(DB_ENV * env, u_int32_t lk_max) {
HANDLE_PANICKED_ENV(env);
lk_max=lk_max;
return 0;
return toku_env_set_lk_max_locks(env, lk_max);
}
static int locked_env_set_lk_max(DB_ENV * env, u_int32_t lk_max) {
......@@ -575,14 +581,6 @@ static int locked_env_set_lk_max(DB_ENV * env, u_int32_t lk_max) {
}
#endif
static int toku_env_set_lk_max_locks(DB_ENV *dbenv, u_int32_t max) {
HANDLE_PANICKED_ENV(dbenv);
if (env_opened(dbenv)) return EINVAL;
if (!max) return EINVAL;
dbenv->i->max_locks = max;
return 0;
}
static int toku_env_get_lk_max_locks(DB_ENV *dbenv, u_int32_t *lk_maxp) {
HANDLE_PANICKED_ENV(dbenv);
if (!lk_maxp) return EINVAL;
......
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