[Groonga-commit] groonga/groonga at 91116bc [master] Fix a bug that reindex doesn't clear cache

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Feb 6 23:18:03 JST 2016


Kouhei Sutou	2016-02-06 23:18:03 +0900 (Sat, 06 Feb 2016)

  New Revision: 91116bc3b5a64642123a9d34a4d68f270814575b
  https://github.com/groonga/groonga/commit/91116bc3b5a64642123a9d34a4d68f270814575b

  Message:
    Fix a bug that reindex doesn't clear cache

  Modified files:
    lib/grn_db.h
    lib/index_column.c

  Modified: lib/grn_db.h (+2 -0)
===================================================================
--- lib/grn_db.h    2016-02-06 22:27:56 +0900 (5ac98b1)
+++ lib/grn_db.h    2016-02-06 23:18:03 +0900 (cd623d7)
@@ -446,6 +446,8 @@ grn_obj *grn_obj_default_set_value_hook(grn_ctx *ctx,
                                         grn_obj **args,
                                         grn_user_data *user_data);
 
+void grn_obj_touch(grn_ctx *ctx, grn_obj *obj, grn_timeval *tv);
+
 #ifdef __cplusplus
 }
 #endif

  Modified: lib/index_column.c (+1 -0)
===================================================================
--- lib/index_column.c    2016-02-06 22:27:56 +0900 (95dac40)
+++ lib/index_column.c    2016-02-06 23:18:03 +0900 (32004e4)
@@ -142,6 +142,7 @@ grn_index_column_build(grn_ctx *ctx, grn_obj *index_column)
           }
         }
         GRN_FREE(col);
+        grn_obj_touch(ctx, index_column, NULL);
       }
     } else {
       ERR(GRN_INVALID_ARGUMENT, "invalid target");
-------------- next part --------------
HTML����������������������������...
Download 



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