mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
Merge the fixes for #2862, #2861, and #2269 onto main. Fixes #2269, #2861, #2862. close[t:2269] close[t:2861] close[t:2862]
{{{
svn merge -r 23006:23042 https://svn.tokutek.com/tokudb/toku/tokudb.2862b
}}}
.
git-svn-id: file:///svn/toku/tokudb@23046 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
committed by
Yoni Fogel
parent
87c3c1de3f
commit
1bfd207e32
11
cxx/db.cpp
11
cxx/db.cpp
@@ -127,11 +127,6 @@ int Db::set_bt_compare(bt_compare_fcn_type bt_compare_fcn) {
|
||||
return the_Env->maybe_throw_error(ret);
|
||||
}
|
||||
|
||||
int Db::set_dup_compare(dup_compare_fcn_type dup_compare_fcn) {
|
||||
int ret = the_db->set_dup_compare(the_db, dup_compare_fcn);
|
||||
return the_Env->maybe_throw_error(ret);
|
||||
}
|
||||
|
||||
int Db::fd(int *fdp) {
|
||||
int ret = the_db->fd(the_db, fdp);
|
||||
return the_Env->maybe_throw_error(ret);
|
||||
@@ -142,12 +137,6 @@ extern "C" int toku_dup_compare_callback_c(DB *db_c, const DBT *a, const DBT *b)
|
||||
return db_cxx->dup_compare_callback_cxx(db_cxx, Dbt::get_const_Dbt(a), Dbt::get_const_Dbt(b));
|
||||
}
|
||||
|
||||
int Db::set_dup_compare(int (*dup_compare_callback)(Db *, const Dbt *, const Dbt *)) {
|
||||
dup_compare_callback_cxx = dup_compare_callback;
|
||||
int ret = the_db->set_dup_compare(the_db, toku_dup_compare_callback_c);
|
||||
return the_Env->maybe_throw_error(ret);
|
||||
}
|
||||
|
||||
void Db::set_errpfx(const char *errpfx) {
|
||||
the_Env->set_errpfx(errpfx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user