[Groonga-commit] pgroonga/pgroonga at 8390d85 [master] Fix a bug that needless recheck may be ran on bitmap heap scan

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Aug 30 23:24:17 JST 2016


Kouhei Sutou	2016-08-30 23:24:17 +0900 (Tue, 30 Aug 2016)

  New Revision: 8390d8583b657a17bd3e174a2a2b9c083d19d564
  https://github.com/pgroonga/pgroonga/commit/8390d8583b657a17bd3e174a2a2b9c083d19d564

  Message:
    Fix a bug that needless recheck may be ran on bitmap heap scan

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+2 -4)
===================================================================
--- src/pgroonga.c    2016-08-30 22:17:27 +0900 (66c7886)
+++ src/pgroonga.c    2016-08-30 23:24:17 +0900 (a59363f)
@@ -3127,6 +3127,8 @@ PGrnEnsureCursorOpened(IndexScanDesc scan, ScanDirection dir)
 	PGrnScanOpaque so = (PGrnScanOpaque) scan->opaque;
 
 #ifdef PGRN_SUPPORT_RECHECK_PER_SCAN
+	scan->xs_recheck = false;
+
 	{
 		int i;
 		for (i = 0; i < scan->numberOfKeys; i++)
@@ -3219,10 +3221,6 @@ pgroonga_gettuple_raw(IndexScanDesc scan,
 {
 	PGrnScanOpaque so = (PGrnScanOpaque) scan->opaque;
 
-#ifdef PGRN_SUPPORT_RECHECK_PER_SCAN
-	scan->xs_recheck = false;
-#endif
-
 	PGrnEnsureCursorOpened(scan, direction);
 
 	if (scan->kill_prior_tuple && so->currentID != GRN_ID_NIL)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index