[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add missing dbug_tmp_restore_column_map()s.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:24:11 JST 2012


Kouhei Sutou	2011-05-08 23:46:36 +0900 (Sun, 08 May 2011)

  New Revision: fe8843b1b361e689efe77854ee8aec7009a499ab
  https://github.com/mroonga/mroonga/commit/fe8843b1b361e689efe77854ee8aec7009a499ab

  Log:
    add missing dbug_tmp_restore_column_map()s.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+6 -0)
===================================================================
--- ha_mroonga.cc    2011-05-08 23:30:49 +0900 (9e02549)
+++ ha_mroonga.cc    2011-05-08 23:46:36 +0900 (535ef80)
@@ -1482,6 +1482,9 @@ int ha_mroonga::write_row(uchar *buf)
   int added;
   row_id = grn_table_add(ctx, tbl, pkey, pkey_size, &added);
   if (ctx->rc) {
+#ifndef DBUG_OFF
+    dbug_tmp_restore_column_map(table->read_set, tmp_map);
+#endif
     my_message(ER_ERROR_ON_WRITE, ctx->errbuf, MYF(0));
     DBUG_RETURN(ER_ERROR_ON_WRITE);
   }
@@ -1553,6 +1556,9 @@ int ha_mroonga::write_row(uchar *buf)
     pthread_mutex_lock(&mrn_allocated_thds_mutex);
     if (my_hash_insert(&mrn_allocated_thds, (uchar*) thd))
     {
+#ifndef DBUG_OFF
+      dbug_tmp_restore_column_map(table->read_set, tmp_map);
+#endif
       DBUG_RETURN(HA_ERR_OUT_OF_MEM);
     }
     pthread_mutex_unlock(&mrn_allocated_thds_mutex);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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