[Groonga-commit] groonga/groonga at 57d2f0a [master] table_remove: add missing unlink

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 14 18:45:50 JST 2016


Kouhei Sutou	2016-03-14 18:45:50 +0900 (Mon, 14 Mar 2016)

  New Revision: 57d2f0a65992d2bf9d64ee1e8dd8aa3bc979de0d
  https://github.com/groonga/groonga/commit/57d2f0a65992d2bf9d64ee1e8dd8aa3bc979de0d

  Message:
    table_remove: add missing unlink

  Modified files:
    lib/proc/proc_table.c

  Modified: lib/proc/proc_table.c (+4 -1)
===================================================================
--- lib/proc/proc_table.c    2016-03-14 18:45:33 +0900 (68508ff)
+++ lib/proc/proc_table.c    2016-03-14 18:45:50 +0900 (c401c52)
@@ -483,12 +483,15 @@ command_table_remove(grn_ctx *ctx,
                       GRN_TEXT_LEN(name));
 
   if (!grn_obj_is_table(ctx, table)) {
+    const char *type_name;
+    type_name = grn_obj_type_to_string(table->header.type);
+    grn_obj_unlink(ctx, table);
     GRN_PLUGIN_ERROR(ctx,
                      GRN_INVALID_ARGUMENT,
                      "[table][remove] not table: <%.*s>: <%s>",
                      (int)GRN_TEXT_LEN(name),
                      GRN_TEXT_VALUE(name),
-                     grn_obj_type_to_string(table->header.type));
+                     type_name);
     grn_ctx_output_bool(ctx, GRN_FALSE);
     return NULL;
   }
-------------- next part --------------
HTML����������������������������...
Descargar 



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