[Groonga-mysql-commit] mroonga/mroonga [master] move lock_data_init position

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 8日 (木) 03:11:04 JST


Kentoku	2011-12-07 18:11:04 +0000 (Wed, 07 Dec 2011)

  New Revision: 28308db222c5d197cc0087e9cae40904b878aa74

  Log:
    move lock_data_init position

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-12-07 14:59:24 +0000 (4d9bde9)
+++ ha_mroonga.cc    2011-12-07 18:11:04 +0000 (a99e429)
@@ -2617,10 +2617,10 @@ int ha_mroonga::open(const char *name, int mode, uint test_if_locked)
 {
   int error = 0;
   MRN_DBUG_ENTER_METHOD();
-  thr_lock_data_init(&share->lock,&thr_lock_data,NULL);
 
   if (!(share = mrn_get_share(name, table, &error)))
     DBUG_RETURN(error);
+  thr_lock_data_init(&share->lock,&thr_lock_data,NULL);
 
   if (share->wrapper_mode)
   {




Groonga-mysql-commit メーリングリストの案内
Back to archive index