[Groonga-commit] groonga/groonga at 07ead1b [master] grn_plugin_get_names: reduce opened objects

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jun 24 12:30:49 JST 2016


Kouhei Sutou	2016-06-24 12:30:49 +0900 (Fri, 24 Jun 2016)

  New Revision: 07ead1b02258d9f2042878db5c8b6c95647c0b29
  https://github.com/groonga/groonga/commit/07ead1b02258d9f2042878db5c8b6c95647c0b29

  Message:
    grn_plugin_get_names: reduce opened objects

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+4 -4)
===================================================================
--- lib/plugin.c    2016-06-24 12:20:27 +0900 (140c9c6)
+++ lib/plugin.c    2016-06-24 12:30:49 +0900 (c220cbe)
@@ -984,6 +984,10 @@ grn_plugin_get_names(grn_ctx *ctx, grn_obj *names)
     const char *path;
     grn_id processed_path_id;
 
+    if (grn_id_is_builtin(ctx, id)) {
+      continue;
+    }
+
     name_size = grn_table_cursor_get_key(ctx, cursor, &name);
     if (grn_obj_name_is_column(ctx, name, name_size)) {
       continue;
@@ -1003,10 +1007,6 @@ grn_plugin_get_names(grn_ctx *ctx, grn_obj *names)
       goto next_loop;
     }
 
-    if (grn_obj_is_builtin(ctx, object)) {
-      goto next_loop;
-    }
-
     path = grn_obj_path(ctx, object);
     if (!path) {
       goto next_loop;
-------------- next part --------------
HTML����������������������������...
下載 



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