[Groonga-mysql-commit] mroonga/mroonga at 9c112eb [master] Stop to override real error message on creating index

Back to archive index
Kouhei Sutou null+****@clear*****
Wed Nov 7 18:16:00 JST 2018


Kouhei Sutou	2018-11-07 18:16:00 +0900 (Wed, 07 Nov 2018)

  Revision: 9c112ebb1dd67b95888b7ed59ab691fbf982ed14
  https://github.com/mroonga/mroonga/commit/9c112ebb1dd67b95888b7ed59ab691fbf982ed14

  Message:
    Stop to override real error message on creating index

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2018-10-29 10:58:19 +0900 (e758b157)
+++ ha_mroonga.cpp    2018-11-07 18:16:00 +0900 (22982c8c)
@@ -4450,9 +4450,9 @@ int ha_mroonga::storage_create_index(TABLE *table, const char *grn_table_name,
                                    grn_table);
 
   if (ctx->rc) {
-    grn_obj_remove(ctx, index_table);
     error = ER_CANT_CREATE_TABLE;
     my_message(error, ctx->errbuf, MYF(0));
+    grn_obj_remove(ctx, index_table);
     DBUG_RETURN(error);
   }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20181107/9e980f68/attachment.html>


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