#59 get test_lock_timeout_callback to work with valgrind. change the type of a sync_fetch_and_add from bool to int

This commit is contained in:
Rich Prohaska 2013-10-01 10:22:03 -04:00
parent bdd2260da3
commit 013bea408f

View file

@ -97,7 +97,7 @@ static DB_ENV *env;
static DB *db; static DB *db;
static DB_TXN *txn1, *txn2; static DB_TXN *txn1, *txn2;
static const int magic_key = 100; static const int magic_key = 100;
static bool callback_calls; static int callback_calls;
toku_pthread_t thread1; toku_pthread_t thread1;
static void lock_not_granted(DB *_db, uint64_t requesting_txnid, static void lock_not_granted(DB *_db, uint64_t requesting_txnid,