From c319506339a34d812e0e14114c13b3ae53978bd8 Mon Sep 17 00:00:00 2001 From: Rich Prohaska Date: Tue, 22 Jan 2008 15:42:54 +0000 Subject: [PATCH] add DB_TXN_NOWAIT to fix builds git-svn-id: file:///svn/tokudb@1796 c7de825b-a66e-492c-adef-691d508d4ae1 --- buildheader/db.h_4_1 | 2 ++ buildheader/db.h_4_3 | 2 ++ buildheader/db.h_4_4 | 2 ++ buildheader/db.h_4_5 | 2 ++ buildheader/db.h_4_6 | 2 ++ buildheader/make_db_h.c | 2 ++ 6 files changed, 12 insertions(+) diff --git a/buildheader/db.h_4_1 b/buildheader/db.h_4_1 index 694d54a55ce..9260113b96d 100644 --- a/buildheader/db.h_4_1 +++ b/buildheader/db.h_4_1 @@ -92,6 +92,8 @@ typedef enum { #define DB_RMW 1073741824 #define DB_DBT_APPMALLOC 1 #define DB_TXN_WRITE_NOSYNC 524288 +#define DB_TXN_NOWAIT 2048 +#define DB_TXN_SYNC 4096 #endif /* in wrap mode, top-level function txn_begin is renamed, but the field isn't renamed, so we have to hack it here.*/ #ifdef _TOKUDB_WRAP_H diff --git a/buildheader/db.h_4_3 b/buildheader/db.h_4_3 index 0b704a7c846..afdd3cdf971 100644 --- a/buildheader/db.h_4_3 +++ b/buildheader/db.h_4_3 @@ -94,6 +94,8 @@ typedef enum { #define DB_DBT_APPMALLOC 1 #define DB_LOG_AUTOREMOVE 65536 #define DB_TXN_WRITE_NOSYNC 268435456 +#define DB_TXN_NOWAIT 4096 +#define DB_TXN_SYNC 8192 #endif /* in wrap mode, top-level function txn_begin is renamed, but the field isn't renamed, so we have to hack it here.*/ #ifdef _TOKUDB_WRAP_H diff --git a/buildheader/db.h_4_4 b/buildheader/db.h_4_4 index 7a4b206d828..1c1b90b4ceb 100644 --- a/buildheader/db.h_4_4 +++ b/buildheader/db.h_4_4 @@ -94,6 +94,8 @@ typedef enum { #define DB_DBT_APPMALLOC 1 #define DB_LOG_AUTOREMOVE 262144 #define DB_TXN_WRITE_NOSYNC 1024 +#define DB_TXN_NOWAIT 8192 +#define DB_TXN_SYNC 16384 #endif /* in wrap mode, top-level function txn_begin is renamed, but the field isn't renamed, so we have to hack it here.*/ #ifdef _TOKUDB_WRAP_H diff --git a/buildheader/db.h_4_5 b/buildheader/db.h_4_5 index a8ba1c2fd2b..b7359c33d76 100644 --- a/buildheader/db.h_4_5 +++ b/buildheader/db.h_4_5 @@ -94,6 +94,8 @@ typedef enum { #define DB_DBT_APPMALLOC 1 #define DB_LOG_AUTOREMOVE 524288 #define DB_TXN_WRITE_NOSYNC 2048 +#define DB_TXN_NOWAIT 16384 +#define DB_TXN_SYNC 32768 #endif /* in wrap mode, top-level function txn_begin is renamed, but the field isn't renamed, so we have to hack it here.*/ #ifdef _TOKUDB_WRAP_H diff --git a/buildheader/db.h_4_6 b/buildheader/db.h_4_6 index 310bb2f2d17..1f2c11301d8 100644 --- a/buildheader/db.h_4_6 +++ b/buildheader/db.h_4_6 @@ -96,6 +96,8 @@ typedef enum { #define DB_DBT_MULTIPLE 16 #define DB_LOG_AUTOREMOVE 524288 #define DB_TXN_WRITE_NOSYNC 4096 +#define DB_TXN_NOWAIT 1024 +#define DB_TXN_SYNC 16384 #endif /* in wrap mode, top-level function txn_begin is renamed, but the field isn't renamed, so we have to hack it here.*/ #ifdef _TOKUDB_WRAP_H diff --git a/buildheader/make_db_h.c b/buildheader/make_db_h.c index 92dcffe9e24..80ca6c94b2e 100644 --- a/buildheader/make_db_h.c +++ b/buildheader/make_db_h.c @@ -113,6 +113,8 @@ void print_defines (void) { dodefine(DB_LOG_AUTOREMOVE); #endif dodefine(DB_TXN_WRITE_NOSYNC); + dodefine(DB_TXN_NOWAIT); + dodefine(DB_TXN_SYNC); printf("#endif\n"); }