[Groonga-commit] groonga/groonga at f6d61fd [master] ii: fix a bug that wrongly clears an internal counter

Back to archive index

Susumu Yata null+****@clear*****
Fri Apr 1 15:56:18 JST 2016


Susumu Yata	2016-04-01 15:56:18 +0900 (Fri, 01 Apr 2016)

  New Revision: f6d61fd7c5e386dc521c1408bb098b049bd9bf0a
  https://github.com/groonga/groonga/commit/f6d61fd7c5e386dc521c1408bb098b049bd9bf0a

  Message:
    ii: fix a bug that wrongly clears an internal counter
    
    GitHub: #517

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2016-04-01 14:27:51 +0900 (690c70e)
+++ lib/ii.c    2016-04-01 15:56:18 +0900 (55136ea)
@@ -9872,7 +9872,7 @@ grn_ii_builder_extend_terms(grn_ctx *ctx, grn_ii_builder *builder,
     builder->max_n_terms = n_terms;
   }
 
-  builder->n = n_terms - builder->n_terms;
+  builder->n += n_terms - builder->n_terms;
   builder->n_terms = n_terms;
   return GRN_SUCCESS;
 }
-------------- next part --------------
HTML����������������������������...
Télécharger 



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