[Groonga-commit] groonga/groonga at 5c1bce6 [master] grn_plugin_get_names: reduce opened objects

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jun 24 11:47:43 JST 2016


Kouhei Sutou	2016-06-24 11:47:43 +0900 (Fri, 24 Jun 2016)

  New Revision: 5c1bce6ec9be03a7418ce520349d676c3c95421f
  https://github.com/groonga/groonga/commit/5c1bce6ec9be03a7418ce520349d676c3c95421f

  Message:
    grn_plugin_get_names: reduce opened objects

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+7 -0)
===================================================================
--- lib/plugin.c    2016-06-24 11:43:02 +0900 (3431aac)
+++ lib/plugin.c    2016-06-24 11:47:43 +0900 (140c9c6)
@@ -977,11 +977,18 @@ grn_plugin_get_names(grn_ctx *ctx, grn_obj *names)
 
   GRN_TABLE_EACH_BEGIN_FLAGS(ctx, grn_ctx_db(ctx), cursor, id,
                              GRN_CURSOR_BY_ID | GRN_CURSOR_ASCENDING) {
+    void *name;
+    int name_size;
     grn_bool is_opened = GRN_TRUE;
     grn_obj *object;
     const char *path;
     grn_id processed_path_id;
 
+    name_size = grn_table_cursor_get_key(ctx, cursor, &name);
+    if (grn_obj_name_is_column(ctx, name, name_size)) {
+      continue;
+    }
+
     if (is_close_opened_object_mode) {
       is_opened = grn_ctx_is_opened(ctx, id);
     }
-------------- next part --------------
HTML����������������������������...
Descargar 



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