mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
add flags to db.h for amazon.com. closes #239
git-svn-id: file:///svn/tokudb@1466 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f8078edf32
commit
22fae76068
7 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue