[Groonga-mysql-commit] mroonga/mroonga at 46b64c3 [master] storage mariadb10: lock only for not temporary table

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Oct 5 18:07:44 JST 2014


Kouhei Sutou	2014-10-05 18:07:44 +0900 (Sun, 05 Oct 2014)

  New Revision: 46b64c3fcbce33f16275c69e8d6215b36513c70e
  https://github.com/mroonga/mroonga/commit/46b64c3fcbce33f16275c69e8d6215b36513c70e

  Message:
    storage mariadb10: lock only for not temporary table
    
    GitHub: fix #18
    
    Reported by Elena Stepanova. Thanks!!!

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2014-10-05 17:40:05 +0900 (ff81c7b)
+++ ha_mroonga.cpp    2014-10-05 18:07:44 +0900 (cba2bca)
@@ -105,13 +105,13 @@
 #  define mrn_open_mutex(share) &((share)->tdc.LOCK_table_share)
 #  define mrn_open_mutex_lock(share) do {       \
   TABLE_SHARE *share_ = share;                  \
-  if (share_) {                                 \
+  if (share_ && share_->tmp_table == NO_TMP_TABLE) {\
     mysql_mutex_lock(mrn_open_mutex(share_));   \
   }                                             \
 } while (0)
 #  define mrn_open_mutex_unlock(share) do {     \
   TABLE_SHARE *share_ = share;                  \
-  if (share_) {                                 \
+  if (share_ && share_->tmp_table == NO_TMP_TABLE) {\
     mysql_mutex_unlock(mrn_open_mutex(share_)); \
   }                                             \
 } while (0)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Zurück zum Archiv-Index