From 97e1ef272fcf94c8b45b90c2d3c034f57fb91302 Mon Sep 17 00:00:00 2001 From: Vincenzo Liberatore Date: Fri, 15 Feb 2008 21:36:19 +0000 Subject: [PATCH] Addresses #378 Propagate refactored error handling to C++ API. git-svn-id: file:///svn/tokudb@2308 c7de825b-a66e-492c-adef-691d508d4ae1 --- cxx/dbenv.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cxx/dbenv.cpp b/cxx/dbenv.cpp index 5e09be39503..5b04448b7a8 100644 --- a/cxx/dbenv.cpp +++ b/cxx/dbenv.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "../newbrt/brttypes.h" #include DbEnv::DbEnv (u_int32_t flags) @@ -100,13 +101,17 @@ int DbEnv::maybe_throw_error(int err) throw (DbException) { } extern "C" { - void toku_do_error_all_cases(const DB_ENV * env, int error, int, int, const char *fmt, va_list ap); +void toku_ydb_error_all_cases(const DB_ENV * env, + int error, + BOOL include_stderrstring, + BOOL use_stderr_if_nothing_else, + const char *fmt, va_list ap); }; void DbEnv::err(int error, const char *fmt, ...) { va_list ap; va_start(ap, fmt); - toku_do_error_all_cases(the_env, error, 1, 1, fmt, ap); + toku_ydb_error_all_cases(the_env, error, TRUE, TRUE, fmt, ap); va_end(ap); }