Commit c2f48707 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

turn off lockretry tracing. closes #1688

git-svn-id: file:///svn/mysql/tokudb-engine/src@11356 c7de825b-a66e-492c-adef-691d508d4ae1
parent b9e37ece
...@@ -53,8 +53,11 @@ static inline void thd_data_set(THD *thd, int slot, void *data) { ...@@ -53,8 +53,11 @@ static inline void thd_data_set(THD *thd, int slot, void *data) {
#define lockretry lockretryN(100) #define lockretry lockretryN(100)
#define lockretry_wait \ #define lockretry_wait \
TOKUDB_TRACE("%s count=%d\n", __FUNCTION__, lockretrycount); \ do { \
usleep((lockretrycount<4 ? (1<<lockretrycount) : (1<<3)) * 1024) if (tokudb_debug & TOKUDB_DEBUG_LOCKRETRY) \
TOKUDB_TRACE("%s count=%d\n", __FUNCTION__, lockretrycount); \
usleep((lockretrycount<4 ? (1<<lockretrycount) : (1<<3)) * 1024); \
} while (0)
/** @brief /** @brief
Simple lock controls. The "share" it creates is a structure we will Simple lock controls. The "share" it creates is a structure we will
......
...@@ -29,6 +29,7 @@ extern ulong tokudb_debug; ...@@ -29,6 +29,7 @@ extern ulong tokudb_debug;
#define TOKUDB_DEBUG_TXN 32 #define TOKUDB_DEBUG_TXN 32
#define TOKUDB_DEBUG_AUTO_INCREMENT 64 #define TOKUDB_DEBUG_AUTO_INCREMENT 64
#define TOKUDB_DEBUG_LOCK 256 #define TOKUDB_DEBUG_LOCK 256
#define TOKUDB_DEBUG_LOCKRETRY 512
#define TOKUDB_TRACE(f, ...) \ #define TOKUDB_TRACE(f, ...) \
printf("%d:%s:%d:" f, my_tid(), __FILE__, __LINE__, ##__VA_ARGS__); printf("%d:%s:%d:" f, my_tid(), __FILE__, __LINE__, ##__VA_ARGS__);
......
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