[Groonga-commit] groonga/groonga at 2749c99 [master] Fix a bug causing index corruption.

Back to archive index

Daijiro MORI null+****@clear*****
Fri Jan 9 21:12:14 JST 2015


Daijiro MORI	2015-01-09 21:12:14 +0900 (Fri, 09 Jan 2015)

  New Revision: 2749c99f5fbc91e24b50032889b532f6bc8788f1
  https://github.com/groonga/groonga/commit/2749c99f5fbc91e24b50032889b532f6bc8788f1

  Message:
    Fix a bug causing index corruption.

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+6 -6)
===================================================================
--- lib/ii.c    2015-01-09 15:25:03 +0900 (fcb18cf)
+++ lib/ii.c    2015-01-09 21:12:14 +0900 (670c7c4)
@@ -2644,12 +2644,12 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h,
               datavec_fin(ctx, rdv);
               return rc;
             }
-            if (cinfo[i].size) {
-              nvchunks++;
-            } else {
-              crid -= cinfo[i].dgap;
-              cinfo[i + 1].dgap += cinfo[i].dgap;
-            }
+          }
+          if (cinfo[i].size) {
+            nvchunks++;
+          } else {
+            crid -= cinfo[i].dgap;
+            cinfo[i + 1].dgap += cinfo[i].dgap;
           }
         }
       }
-------------- next part --------------
HTML����������������������������...
Download 



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