Browse Source

turn off lockretry tracing. closes #1688

git-svn-id: file:///svn/mysql/tokudb-engine/src@11356 c7de825b-a66e-492c-adef-691d508d4ae1
pull/73/head
Rich Prohaska 13 years ago
committed by Yoni Fogel
parent
commit
7cb84b7913
  1. 7
      storage/tokudb/ha_tokudb.cc
  2. 1
      storage/tokudb/hatoku_defines.h

7
storage/tokudb/ha_tokudb.cc

@ -53,8 +53,11 @@ static inline void thd_data_set(THD *thd, int slot, void *data) {
#define lockretry lockretryN(100)
#define lockretry_wait \
TOKUDB_TRACE("%s count=%d\n", __FUNCTION__, lockretrycount); \
usleep((lockretrycount<4 ? (1<<lockretrycount) : (1<<3)) * 1024)
do { \
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
Simple lock controls. The "share" it creates is a structure we will

1
storage/tokudb/hatoku_defines.h

@ -29,6 +29,7 @@ extern ulong tokudb_debug;
#define TOKUDB_DEBUG_TXN 32
#define TOKUDB_DEBUG_AUTO_INCREMENT 64
#define TOKUDB_DEBUG_LOCK 256
#define TOKUDB_DEBUG_LOCKRETRY 512
#define TOKUDB_TRACE(f, ...) \
printf("%d:%s:%d:" f, my_tid(), __FILE__, __LINE__, ##__VA_ARGS__);

Loading…
Cancel
Save