[Groonga-mysql-commit] mroonga/mroonga at f447771 [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 6 16:39:20 JST 2014


Kouhei Sutou	2014-01-06 16:39:20 +0900 (Mon, 06 Jan 2014)

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

  Message:
    Simplify
    
    We can use non "reverse" version to find target character isn't
    included.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2014-01-06 16:31:55 +0900 (8bdd32a)
+++ ha_mroonga.cpp    2014-01-06 16:39:20 +0900 (e8a3717)
@@ -8539,7 +8539,7 @@ bool ha_mroonga::is_temporary_table_name(const char *name) const
     int mysql_data_home_len = strlen(mysql_data_home);
     if (len < mysql_data_home_len ||
         strncmp(name, mysql_data_home, mysql_data_home_len) ||
-        !strrchr(&name[mysql_data_home_len], FN_LIBCHAR)) {
+        !strchr(&name[mysql_data_home_len], FN_LIBCHAR)) {
       temporary_table_name_p = TRUE;
     }
   }
-------------- next part --------------
HTML����������������������������...
Download 



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