[Groonga-mysql-commit] mroonga/mroonga at 8c2e955 [master] Fix wrong context used for error check of opening database

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed Sep 25 18:16:40 JST 2013


Kouhei Sutou	2013-09-25 18:16:40 +0900 (Wed, 25 Sep 2013)

  New Revision: 8c2e955de2bd6b3209e818150ef188297d17fd1f
  https://github.com/mroonga/mroonga/commit/8c2e955de2bd6b3209e818150ef188297d17fd1f

  Message:
    Fix wrong context used for error check of opening database

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2013-09-25 18:04:09 +0900 (e46e518)
+++ ha_mroonga.cpp    2013-09-25 18:16:40 +0900 (49dc8fe)
@@ -3663,10 +3663,10 @@ int ha_mroonga::ensure_database_open(const char *name)
     mrn::Lock lock(&mrn_db_mutex);
     if (!mrn_hash_get(&mrn_ctx, mrn_hash, mapper.db_name(), &db)) {
       db = grn_db_open(&mrn_ctx, mapper.db_path());
-      if (ctx->rc) {
+      if (mrn_ctx.rc) {
         pthread_mutex_unlock(&mrn_db_mutex);
         error = ER_CANT_OPEN_FILE;
-        my_message(error, ctx->errbuf, MYF(0));
+        my_message(error, mrn_ctx.errbuf, MYF(0));
         DBUG_RETURN(error);
       }
       mrn_hash_put(&mrn_ctx, mrn_hash, mapper.db_name(), db);
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る