1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-30 05:23:50 +03:00

stubs waiting for locking to be implemented. addresses #230

git-svn-id: file:///svn/tokudb@1467 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska
2008-01-02 16:00:18 +00:00
parent 22fae76068
commit c83bd8f03d
2 changed files with 27 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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 *);