From 7baff9f68763d737c5eb612e455861a1cd05349f Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 17 Mar 2016 13:08:06 +0100 Subject: fix extension_based_table_discovery for partitioned tables typo. the code was not matching the comment --- sql/discover.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/discover.cc') diff --git a/sql/discover.cc b/sql/discover.cc index 36e3ef72c44..d8ed718fc58 100644 --- a/sql/discover.cc +++ b/sql/discover.cc @@ -199,7 +199,7 @@ int extension_based_table_discovery(MY_DIR *dirp, const char *ext_meta, end= cur + dirp->number_of_files; while (cur < end) { - char *octothorp= strrchr(cur->name + 1, '#'); + char *octothorp= strchr(cur->name + 1, '#'); char *ext= strchr(octothorp ? octothorp : cur->name, FN_EXTCHAR); if (ext) -- cgit v1.2.1