List:Commits« Previous MessageNext Message »
From:holyfoot Date:June 2 2007 6:45pm
Subject:bk commit into 5.0 tree (holyfoot:1.2509) BUG#28309
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of hf. When hf does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-06-02 21:45:12+05:00, holyfoot@stripped +1 -0
  bug #28309 First insert violates unique constant - was 'memory' table empty?
  
  If we have lower_case_table_names == 2 (on case insernsitive file systems)
  we not always make 'homedir' part turned into lowercase. More exactly,
  we set it as it is for the TABLE_SHARE and calling handler::open, though
  we make it lowercase when call ha_remove_table.
  So HEAP engine can't properly find and remove HP_SHARE, reuses removed
  one what produces that error.
  
  Here i propose just to turn mysql_real_home into lowercase if the
  filesystem is case insensitive

  sql/mysqld.cc@stripped, 2007-06-02 21:45:11+05:00, holyfoot@stripped +3 -0
    bug #28309 First insert violates unique constant - was 'memory' table empty?
    
    make mysql_real_data_home lowercase if filesystem is case insensitive

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	holyfoot
# Host:	hfmain.(none)
# Root:	/home/hf/work/28309/my50-28309

--- 1.609/sql/mysqld.cc	2007-06-02 21:45:19 +05:00
+++ 1.610/sql/mysqld.cc	2007-06-02 21:45:19 +05:00
@@ -2861,6 +2861,9 @@ static int init_common_variables(const c
   */
   DBUG_PRINT("info", ("lower_case_table_names: %d", lower_case_table_names));
   lower_case_file_system= test_if_case_insensitive(mysql_real_data_home);
+  if (lower_case_file_system == 1)
+    my_casedn_str(files_charset_info, mysql_real_data_home);
+   
   if (!lower_case_table_names && lower_case_file_system == 1)
   {
     if (lower_case_table_names_used)
Thread
bk commit into 5.0 tree (holyfoot:1.2509) BUG#28309holyfoot2 Jun