add TOKUDB error

git-svn-id: file:///svn/tokudb@2942 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2008-03-19 14:33:39 +00:00
parent c8d01cded2
commit 6a3cabd62c

View file

@ -29,6 +29,10 @@ void print_db_notices (void) {
#define dodefine(name) printf("#define %s %d\n", #name, name)
enum {
TOKUDB_OUT_OF_LOCKS = -100000,
};
void print_defines (void) {
printf("#ifndef _TOKUDB_WRAP_H\n");
dodefine(DB_VERB_DEADLOCK);
@ -120,7 +124,12 @@ void print_defines (void) {
dodefine(DB_TXN_NOWAIT);
dodefine(DB_TXN_SYNC);
printf("#endif\n");
/* TOKUDB specific error codes*/
printf("/* TOKUDB specific error codes */\n");
dodefine(TOKUDB_OUT_OF_LOCKS);
}
//#define DECL_LIMIT 100