[Tritonn-commit 119] [svn] [133] added comments for senna_2ind flags

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 6月 9日 (月) 14:46:36 JST


Revision: 133
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=133
Author:   mir
Date:     2008-06-09 14:46:36 +0900 (Mon, 09 Jun 2008)

Log Message:
-----------
added comments for senna_2ind flags

Modified Paths:
--------------
    tags/tritonn-1.0.10-mysql-5.0.51a/include/my_base.h


-------------- next part --------------
Modified: tags/tritonn-1.0.10-mysql-5.0.51a/include/my_base.h
===================================================================
--- tags/tritonn-1.0.10-mysql-5.0.51a/include/my_base.h	2008-06-09 04:06:05 UTC (rev 132)
+++ tags/tritonn-1.0.10-mysql-5.0.51a/include/my_base.h	2008-06-09 05:46:36 UTC (rev 133)
@@ -336,16 +336,20 @@
 #define HA_STATUS_SENNA         (1 << 31)
 #endif
 
-/* 
+/*
    The following defines are for senna.2ind patch.
+
+   1. For (output|filesort|grouping), record value is needed?
+   2. If so, each code checks if filescan is needed.
+   3. If filescan is needed, read_record will be executed.
 */
 #ifdef ENABLE_SENNA
-#define SENNA_USE_2IND          (1 << 0)
-#define SENNA_MATCH             (1 << 1)
-#define SENNA_FILESORT          (1 << 2)
-#define SENNA_DO_READ_RECORD    (1 << 3)
-#define SENNA_IF_READ_RECORD    (1 << 4)
-#define SENNA_DISTINCT          (1 << 5)
+#define SENNA_USE_2IND          (1 << 0) /* senna_2ind is on */
+#define SENNA_MATCH             (1 << 1) /* query has match...agains */
+#define SENNA_FILESORT          (1 << 2) /* query needs filesort */
+#define SENNA_DO_READ_RECORD    (1 << 3) /* query needs read_record when filescan, ft_read_next */
+#define SENNA_IF_READ_RECORD    (1 << 4) /* decide_read_or_skip told read_record is needed */
+#define SENNA_DISTINCT          (1 << 5) /* query has distict */
 #define SENNA_FIRST_CALL        (1 << 6)
 #endif
 


Tritonn-commit メーリングリストの案内
Back to archive index