[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [default][create] use meaningful name.

Back to archive index

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


Kouhei Sutou	2011-06-09 18:26:03 +0900 (Thu, 09 Jun 2011)

  New Revision: 2d5bda043780944a906aff36d13581ad418f645a
  https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a

  Log:
    [default][create] use meaningful name.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+2 -2)
===================================================================
--- ha_mroonga.cc    2011-06-09 18:25:21 +0900 (d572cf6)
+++ ha_mroonga.cc    2011-06-09 18:26:03 +0900 (5115f76)
@@ -1260,13 +1260,13 @@ int ha_mroonga::default_create_ensure_database_open(const char *name)
   grn_obj *db_obj;
   char db_name[MRN_MAX_PATH_SIZE];
   char db_path[MRN_MAX_PATH_SIZE];
-  struct stat dummy;
+  struct stat db_stat;
   mrn_db_name_gen(name, db_name);
   mrn_db_path_gen(name, db_path);
 
   pthread_mutex_lock(&mrn_db_mutex);
   if (mrn_hash_get(ctx, mrn_hash, db_name, (void**) &(db_obj)) != 0) {
-    if (stat(db_path, &dummy)) {
+    if (stat(db_path, &db_stat)) {
       // creating new database
       GRN_LOG(ctx, GRN_LOG_INFO, "database not found. creating...(%s)", db_path);
       db_obj = grn_db_create(ctx, db_path, NULL);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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