Commit d179e308 authored by Leif Walsh's avatar Leif Walsh

fixed a bunch of clang warnings

parent 7fbbf4df
...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT:
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static int test_cursor_debug = 0; static int test_cursor_debug = 0;
......
...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT: ...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
......
...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT: ...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test0 (void) { static void test0 (void) {
FT_HANDLE t; FT_HANDLE t;
......
...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT: ...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test1 (void) { static void test1 (void) {
FT_HANDLE t; FT_HANDLE t;
......
...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT: ...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test2 (int limit) { static void test2 (int limit) {
FT_HANDLE t; FT_HANDLE t;
......
...@@ -97,7 +97,6 @@ static const char *fname = TOKU_TEST_FILENAME; ...@@ -97,7 +97,6 @@ static const char *fname = TOKU_TEST_FILENAME;
static const enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD; static const enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test3 (int nodesize, int basementnodesize, int count) { static void test3 (int nodesize, int basementnodesize, int count) {
FT_HANDLE t; FT_HANDLE t;
......
...@@ -95,7 +95,6 @@ PATENT RIGHTS GRANT: ...@@ -95,7 +95,6 @@ PATENT RIGHTS GRANT:
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test4 (int nodesize, int count) { static void test4 (int nodesize, int count) {
FT_HANDLE t; FT_HANDLE t;
......
...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT: ...@@ -92,7 +92,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void test5 (void) { static void test5 (void) {
int r; int r;
......
...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT: ...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT:
#include <unistd.h> #include <unistd.h>
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static CACHETABLE ct; static CACHETABLE ct;
......
...@@ -95,8 +95,6 @@ PATENT RIGHTS GRANT: ...@@ -95,8 +95,6 @@ PATENT RIGHTS GRANT:
#include "le-cursor.h" #include "le-cursor.h"
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static int static int
get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) { get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) {
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static int static int
get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) { get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) {
......
...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT: ...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT:
#include <unistd.h> #include <unistd.h>
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static int static int
get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) { get_next_callback(ITEMLEN keylen, bytevec key, ITEMLEN vallen UU(), bytevec val UU(), void *extra, bool lock_only) {
......
...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT:
#include "ule.h" #include "ule.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static txn_gc_info non_mvcc_gc_info(nullptr, TXNID_NONE, TXNID_NONE, false); static txn_gc_info non_mvcc_gc_info(nullptr, TXNID_NONE, TXNID_NONE, false);
static toku::comparator dummy_cmp; static toku::comparator dummy_cmp;
...@@ -320,8 +319,6 @@ insert_random_update_message(NONLEAF_CHILDINFO bnc, FT_MSG_S **save, bool is_fre ...@@ -320,8 +319,6 @@ insert_random_update_message(NONLEAF_CHILDINFO bnc, FT_MSG_S **save, bool is_fre
} }
} }
const int M = 1024 * 1024;
// flush from one internal node to another, where both only have one // flush from one internal node to another, where both only have one
// buffer // buffer
static void static void
...@@ -551,29 +548,29 @@ flush_to_internal_multiple(FT_HANDLE t) { ...@@ -551,29 +548,29 @@ flush_to_internal_multiple(FT_HANDLE t) {
MSN msn = msg->msn; MSN msn = msg->msn;
enum ft_msg_type type = ft_msg_get_type(msg); enum ft_msg_type type = ft_msg_get_type(msg);
XIDS xids = ft_msg_get_xids(msg); XIDS xids = ft_msg_get_xids(msg);
for (int i = 0; i < num_parent_messages; ++i) { for (int _i = 0; _i < num_parent_messages; ++_i) {
if (dummy_cmp(&keydbt, parent_messages[i]->u.id.key) == 0 && if (dummy_cmp(&keydbt, parent_messages[_i]->u.id.key) == 0 &&
msn.msn == parent_messages[i]->msn.msn) { msn.msn == parent_messages[_i]->msn.msn) {
assert(parent_messages_present[i] == 0); assert(parent_messages_present[_i] == 0);
assert(found == 0); assert(found == 0);
assert(dummy_cmp(&valdbt, parent_messages[i]->u.id.val) == 0); assert(dummy_cmp(&valdbt, parent_messages[_i]->u.id.val) == 0);
assert(type == parent_messages[i]->type); assert(type == parent_messages[_i]->type);
assert(xids_get_innermost_xid(xids) == xids_get_innermost_xid(parent_messages[i]->xids)); assert(xids_get_innermost_xid(xids) == xids_get_innermost_xid(parent_messages[_i]->xids));
assert(parent_messages_is_fresh[i] == is_fresh); assert(parent_messages_is_fresh[_i] == is_fresh);
parent_messages_present[i]++; parent_messages_present[_i]++;
found++; found++;
} }
} }
for (int i = 0; i < num_child_messages; ++i) { for (int _i = 0; _i < num_child_messages; ++_i) {
if (dummy_cmp(&keydbt, child_messages[i]->u.id.key) == 0 && if (dummy_cmp(&keydbt, child_messages[_i]->u.id.key) == 0 &&
msn.msn == child_messages[i]->msn.msn) { msn.msn == child_messages[_i]->msn.msn) {
assert(child_messages_present[i] == 0); assert(child_messages_present[_i] == 0);
assert(found == 0); assert(found == 0);
assert(dummy_cmp(&valdbt, child_messages[i]->u.id.val) == 0); assert(dummy_cmp(&valdbt, child_messages[_i]->u.id.val) == 0);
assert(type == child_messages[i]->type); assert(type == child_messages[_i]->type);
assert(xids_get_innermost_xid(xids) == xids_get_innermost_xid(child_messages[i]->xids)); assert(xids_get_innermost_xid(xids) == xids_get_innermost_xid(child_messages[_i]->xids));
assert(child_messages_is_fresh[i] == is_fresh); assert(child_messages_is_fresh[_i] == is_fresh);
child_messages_present[i]++; child_messages_present[_i]++;
found++; found++;
} }
} }
...@@ -985,10 +982,10 @@ flush_to_leaf_with_keyrange(FT_HANDLE t, bool make_leaf_up_to_date) { ...@@ -985,10 +982,10 @@ flush_to_leaf_with_keyrange(FT_HANDLE t, bool make_leaf_up_to_date) {
toku_fill_dbt(&keydbt, ft_msg_get_key(msg), ft_msg_get_keylen(msg)); toku_fill_dbt(&keydbt, ft_msg_get_key(msg), ft_msg_get_keylen(msg));
MSN msn = msg->msn; MSN msn = msg->msn;
if (dummy_cmp(&keydbt, &childkeys[7]) > 0) { if (dummy_cmp(&keydbt, &childkeys[7]) > 0) {
for (int i = 0; i < num_parent_messages; ++i) { for (int _i = 0; _i < num_parent_messages; ++_i) {
if (dummy_cmp(&keydbt, parent_messages[i]->u.id.key) == 0 && if (dummy_cmp(&keydbt, parent_messages[_i]->u.id.key) == 0 &&
msn.msn == parent_messages[i]->msn.msn) { msn.msn == parent_messages[_i]->msn.msn) {
assert(is_fresh == parent_messages_is_fresh[i]); assert(is_fresh == parent_messages_is_fresh[_i]);
break; break;
} }
} }
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -95,7 +95,6 @@ PATENT RIGHTS GRANT: ...@@ -95,7 +95,6 @@ PATENT RIGHTS GRANT:
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -98,7 +98,6 @@ PATENT RIGHTS GRANT: ...@@ -98,7 +98,6 @@ PATENT RIGHTS GRANT:
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
int int
test_main(int argc, const char *argv[]) { test_main(int argc, const char *argv[]) {
......
...@@ -98,7 +98,6 @@ PATENT RIGHTS GRANT: ...@@ -98,7 +98,6 @@ PATENT RIGHTS GRANT:
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT: ...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT:
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static void static void
test_overflow (void) { test_overflow (void) {
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -120,7 +120,6 @@ PATENT RIGHTS GRANT: ...@@ -120,7 +120,6 @@ PATENT RIGHTS GRANT:
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT: ...@@ -97,7 +97,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -100,7 +100,6 @@ PATENT RIGHTS GRANT: ...@@ -100,7 +100,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -101,7 +101,6 @@ PATENT RIGHTS GRANT: ...@@ -101,7 +101,6 @@ PATENT RIGHTS GRANT:
CACHETABLE ct; CACHETABLE ct;
FT_HANDLE t; FT_HANDLE t;
static DB * const null_db = 0;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
volatile bool done = false; volatile bool done = false;
......
...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT: ...@@ -99,7 +99,6 @@ PATENT RIGHTS GRANT:
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static int const nodesize = 1<<12, basementnodesize = 1<<9; static int const nodesize = 1<<12, basementnodesize = 1<<9;
static const enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD; static const enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD;
static int const count = 1000; static int const count = 1000;
......
...@@ -111,7 +111,6 @@ static const int vallen = 64 - sizeof(long) - (sizeof(((LEAFENTRY)NULL)->type) ...@@ -111,7 +111,6 @@ static const int vallen = 64 - sizeof(long) - (sizeof(((LEAFENTRY)NULL)->type)
#define dummy_msn_3884 ((MSN) { (uint64_t) 3884 * MIN_MSN.msn }) #define dummy_msn_3884 ((MSN) { (uint64_t) 3884 * MIN_MSN.msn })
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
static const char *fname = TOKU_TEST_FILENAME; static const char *fname = TOKU_TEST_FILENAME;
static void static void
......
...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT: ...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT:
#include <unistd.h> #include <unistd.h>
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
const char *fname = TOKU_TEST_FILENAME; const char *fname = TOKU_TEST_FILENAME;
CACHETABLE ct; CACHETABLE ct;
......
...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT: ...@@ -96,7 +96,6 @@ PATENT RIGHTS GRANT:
#include <ft-cachetable-wrappers.h> #include <ft-cachetable-wrappers.h>
static TOKUTXN const null_txn = 0; static TOKUTXN const null_txn = 0;
static DB * const null_db = 0;
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 }; enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
......
...@@ -105,7 +105,6 @@ const char LOGDIR[100] = "./dir.test_logcursor"; ...@@ -105,7 +105,6 @@ const char LOGDIR[100] = "./dir.test_logcursor";
const int FSYNC = 1; const int FSYNC = 1;
const int NO_FSYNC = 0; const int NO_FSYNC = 0;
const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN;
const char *namea="a.db"; const char *namea="a.db";
const char *nameb="b.db"; const char *nameb="b.db";
const char *a="a"; const char *a="a";
......
...@@ -100,7 +100,6 @@ PATENT RIGHTS GRANT: ...@@ -100,7 +100,6 @@ PATENT RIGHTS GRANT:
#include "checkpoint.h" #include "checkpoint.h"
static TOKUTXN const null_txn = NULL; static TOKUTXN const null_txn = NULL;
static DB * const null_db = NULL;
static int static int
noop_getf(ITEMLEN UU(keylen), bytevec UU(key), ITEMLEN UU(vallen), bytevec UU(val), void *extra, bool UU(lock_only)) noop_getf(ITEMLEN UU(keylen), bytevec UU(key), ITEMLEN UU(vallen), bytevec UU(val), void *extra, bool UU(lock_only))
......
...@@ -95,7 +95,6 @@ static DB_ENV *env; ...@@ -95,7 +95,6 @@ static DB_ENV *env;
static DB *db; static DB *db;
DB_TXN *txn; DB_TXN *txn;
const int num_insert = 25000;
static void static void
setup (void) { setup (void) {
......
...@@ -103,7 +103,6 @@ static int num_rows; ...@@ -103,7 +103,6 @@ static int num_rows;
static const int FORWARD = 0; static const int FORWARD = 0;
static const int BACKWARD = 1; static const int BACKWARD = 1;
typedef int Direction; typedef int Direction;
static const int TXN_NONE = 0;
static const int TXN_CREATE = 1; static const int TXN_CREATE = 1;
static const int TXN_END = 2; static const int TXN_END = 2;
typedef int TxnWork; typedef int TxnWork;
......
...@@ -94,8 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,8 +94,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_PRIVATE;
DB_ENV *env; DB_ENV *env;
DB_TXN *tid; DB_TXN *tid;
DB *db; DB *db;
......
...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_PRIVATE;
const char *namea="a.db"; const char *namea="a.db";
DB_ENV *env; DB_ENV *env;
......
...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT: ...@@ -94,7 +94,6 @@ PATENT RIGHTS GRANT:
#include "test.h" #include "test.h"
const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_PRIVATE;
const char *namea="a.db"; const char *namea="a.db";
DB_ENV *env; DB_ENV *env;
......
...@@ -104,7 +104,6 @@ DB** db_array; ...@@ -104,7 +104,6 @@ DB** db_array;
DB* states; DB* states;
static const int percent_do_op = 20; static const int percent_do_op = 20;
static const int percent_do_abort = 25; static const int percent_do_abort = 25;
static const int commit_abort_ratio = 3;
static const int start_crashing_iter = 10; static const int start_crashing_iter = 10;
// iterations_per_crash_in_recovery should be an odd number; // iterations_per_crash_in_recovery should be an odd number;
static const int iterations_per_crash_in_recovery = 7; static const int iterations_per_crash_in_recovery = 7;
......
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