Commit 68cfbb4d authored by Rich Prohaska's avatar Rich Prohaska

stubs waiting for locking to be implemented. addresses #230

git-svn-id: file:///svn/tokudb@1467 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2d7ce792
......@@ -119,3 +119,17 @@ void DbEnv::set_errcall(void (*db_errcall_fcn)(const DbEnv *, const char *, cons
errcall = db_errcall_fcn;
the_env->set_errcall(the_env, toku_db_env_errcall_c);
}
// locking not yet implemented
int DbEnv::set_lk_max_locks(u_int32_t max_locks) {
return 0;
}
int DbEnv::set_lk_max_lockers(u_int32_t max_lockers) {
return 0;
}
int DbEnv::set_lk_max_objects(u_int32_t max_objects) {
return 0;
}
......@@ -153,10 +153,6 @@ class DbEnv {
int open(const char *, u_int32_t, int);
int set_cachesize(u_int32_t, u_int32_t, int);
int set_flags(u_int32_t, int);
#if DB_VERSION_MAJOR<4 || (DB_VERSION_MAJOR==4 && DB_VERSION_MINOR<=4)
// set_lk_max is only defined for versions up to 4.4
int set_lk_max(u_int32_t);
#endif
int txn_begin(DbTxn *, DbTxn **, u_int32_t);
int set_data_dir(const char *dir);
void set_errpfx(const char *errpfx);
......@@ -164,6 +160,19 @@ class DbEnv {
void set_errfile(FILE *errfile);
void set_errcall(void (*)(const DbEnv *, const char *, const char *));
// locking
#if DB_VERSION_MAJOR<4 || (DB_VERSION_MAJOR==4 && DB_VERSION_MINOR<=4)
// set_lk_max is only defined for versions up to 4.4
int set_lk_max(u_int32_t);
#endif
int set_lk_max_locks(u_int32_t);
int get_lk_max_locks(u_int32_t *);
int set_lk_max_lockers(u_int32_t);
int get_lk_max_lockers(u_int32_t *);
int set_lk_max_objects(u_int32_t);
int get_lk_max_objects(u_int32_t *);
// somewhat_private:
int do_no_exceptions; // This should be private!!!
void (*errcall)(const DbEnv *, const char *, const char *);
......
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