Commit 7157eee2 authored by Rich Prohaska's avatar Rich Prohaska

implement Db::set_error_stream. closes #257

git-svn-id: file:///svn/tokudb@1610 c7de825b-a66e-492c-adef-691d508d4ae1
parent ee060abf
...@@ -166,3 +166,7 @@ int Db::associate(DbTxn *txnid, Db *secondary, int (*callback)(Db *secondary, co ...@@ -166,3 +166,7 @@ int Db::associate(DbTxn *txnid, Db *secondary, int (*callback)(Db *secondary, co
int ret = the_db->associate(the_db, txnid->get_DB_TXN(), secondary->get_DB(), toku_associate_callback_c, flags); int ret = the_db->associate(the_db, txnid->get_DB_TXN(), secondary->get_DB(), toku_associate_callback_c, flags);
return the_Env->maybe_throw_error(ret); return the_Env->maybe_throw_error(ret);
} }
void Db::set_error_stream(std::ostream *new_error_stream) {
the_Env->set_error_stream(new_error_stream);
}
...@@ -127,6 +127,8 @@ class Db { ...@@ -127,6 +127,8 @@ class Db {
int fd(int *); int fd(int *);
void set_error_stream(std::ostream *);
/* the cxx callbacks must be public so they can be called by the c callback. But it's really private. */ /* the cxx callbacks must be public so they can be called by the c callback. But it's really private. */
int (*associate_callback_cxx)(Db *, const Dbt *, const Dbt *, Dbt*); int (*associate_callback_cxx)(Db *, const Dbt *, const Dbt *, Dbt*);
int (*bt_compare_callback_cxx)(Db *, const Dbt *, const Dbt *); int (*bt_compare_callback_cxx)(Db *, const Dbt *, const Dbt *);
......
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