Commit 2d7ce792 authored by Rich Prohaska's avatar Rich Prohaska

add flags to db.h for amazon.com. closes #239

git-svn-id: file:///svn/tokudb@1466 c7de825b-a66e-492c-adef-691d508d4ae1
parent ad64980c
......@@ -87,6 +87,7 @@ typedef enum {
#define DB_SET_RANGE 32
#define DB_RMW 1073741824
#define DB_DBT_APPMALLOC 1
#define DB_TXN_WRITE_NOSYNC 524288
#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
......
......@@ -88,6 +88,8 @@ typedef enum {
#define DB_SET_RANGE 30
#define DB_RMW 536870912
#define DB_DBT_APPMALLOC 1
#define DB_LOG_AUTOREMOVE 65536
#define DB_TXN_WRITE_NOSYNC 268435456
#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
......
......@@ -88,6 +88,8 @@ typedef enum {
#define DB_SET_RANGE 30
#define DB_RMW 536870912
#define DB_DBT_APPMALLOC 1
#define DB_LOG_AUTOREMOVE 262144
#define DB_TXN_WRITE_NOSYNC 1024
#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
......
......@@ -88,6 +88,8 @@ typedef enum {
#define DB_SET_RANGE 27
#define DB_RMW 1073741824
#define DB_DBT_APPMALLOC 1
#define DB_LOG_AUTOREMOVE 524288
#define DB_TXN_WRITE_NOSYNC 2048
#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
......
......@@ -89,6 +89,8 @@ typedef enum {
#define DB_RMW 1073741824
#define DB_DBT_APPMALLOC 1
#define DB_DBT_MULTIPLE 16
#define DB_LOG_AUTOREMOVE 524288
#define DB_TXN_WRITE_NOSYNC 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
......
......@@ -101,6 +101,13 @@ void print_defines (void) {
#ifdef DB_DBT_MULTIPLE
dodefine(DB_DBT_MULTIPLE);
#endif
// flags for the env->set_flags function
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
dodefine(DB_LOG_AUTOREMOVE);
#endif
dodefine(DB_TXN_WRITE_NOSYNC);
printf("#endif\n");
}
......
......@@ -88,6 +88,8 @@ typedef enum {
#define DB_SET_RANGE 30
#define DB_RMW 536870912
#define DB_DBT_APPMALLOC 1
#define DB_LOG_AUTOREMOVE 262144
#define DB_TXN_WRITE_NOSYNC 1024
#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
......
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