svnno****@sourc*****
svnno****@sourc*****
2008年 6月 9日 (月) 13:06:05 JST
Revision: 132 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=132 Author: mir Date: 2008-06-09 13:06:05 +0900 (Mon, 09 Jun 2008) Log Message: ----------- upgraded DEBUG_2IND macro for easy reading Modified Paths: -------------- tags/tritonn-1.0.10-mysql-5.0.51a/include/my_global.h -------------- next part -------------- Modified: tags/tritonn-1.0.10-mysql-5.0.51a/include/my_global.h =================================================================== --- tags/tritonn-1.0.10-mysql-5.0.51a/include/my_global.h 2008-06-09 03:36:22 UTC (rev 131) +++ tags/tritonn-1.0.10-mysql-5.0.51a/include/my_global.h 2008-06-09 04:06:05 UTC (rev 132) @@ -1358,8 +1358,19 @@ #ifdef ENABLE_SENNA #ifdef SENNA_DEBUG_2IND -#define DEBUG_2IND(x) x; \ - printf("DEBUG_2IND=%d, at %s:%d\n", my_thread_var->sen_flags, __FILE__, __LINE__) +#define DEBUG_2IND(sxp) sxp; \ + { \ + int sf = my_thread_var->sen_flags; \ + printf("%s:%d sen_flags=%d (",__FILE__, __LINE__, sf); \ + if (sf & SENNA_USE_2IND) printf("USE2IND "); \ + if (sf & SENNA_MATCH) printf("MATCH "); \ + if (sf & SENNA_FILESORT) printf("FILESORT "); \ + if (sf & SENNA_DO_READ_RECORD) printf("DO_READ_RECORD "); \ + if (sf & SENNA_IF_READ_RECORD) printf("IF_READ_RECORD "); \ + if (sf & SENNA_DISTINCT) printf("DISTINCT "); \ + if (sf & SENNA_FIRST_CALL) printf("FIRST_CALL "); \ + printf(")\n"); \ + } #else #define DEBUG_2IND(x) x #endif