Commit cdf6566e authored by Zardosht Kasheff's avatar Zardosht Kasheff

add TOKUDB error

git-svn-id: file:///svn/tokudb@2942 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2a03b5a9
...@@ -29,6 +29,10 @@ void print_db_notices (void) { ...@@ -29,6 +29,10 @@ void print_db_notices (void) {
#define dodefine(name) printf("#define %s %d\n", #name, name) #define dodefine(name) printf("#define %s %d\n", #name, name)
enum {
TOKUDB_OUT_OF_LOCKS = -100000,
};
void print_defines (void) { void print_defines (void) {
printf("#ifndef _TOKUDB_WRAP_H\n"); printf("#ifndef _TOKUDB_WRAP_H\n");
dodefine(DB_VERB_DEADLOCK); dodefine(DB_VERB_DEADLOCK);
...@@ -120,7 +124,12 @@ void print_defines (void) { ...@@ -120,7 +124,12 @@ void print_defines (void) {
dodefine(DB_TXN_NOWAIT); dodefine(DB_TXN_NOWAIT);
dodefine(DB_TXN_SYNC); dodefine(DB_TXN_SYNC);
printf("#endif\n"); printf("#endif\n");
/* TOKUDB specific error codes*/
printf("/* TOKUDB specific error codes */\n");
dodefine(TOKUDB_OUT_OF_LOCKS);
} }
//#define DECL_LIMIT 100 //#define DECL_LIMIT 100
......
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