~tsarev/percona-server/bug721176

« back to all changes in this revision

Viewing changes to patches/control_online_alter_index.patch

  • Committer: Stewart Smith
  • Date: 2011-08-16 02:52:57 UTC
  • mfrom: (148.1.5 5.5.15-porting)
  • Revision ID: stewart@flamingspork.com-20110816025257-0e7elba7i8tlrf50
merge 5.5.15 rebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#!!! notice !!!
6
6
# Any small change to this file in the main branch
7
7
# should be done or reviewed by the maintainer!
8
 
diff -ruN a/sql/handler.h b/sql/handler.h
9
 
--- a/sql/handler.h     2010-11-03 07:01:14.000000000 +0900
10
 
+++ b/sql/handler.h     2010-12-03 13:51:04.727293058 +0900
11
 
@@ -205,6 +205,8 @@
 
8
--- a/sql/handler.h
 
9
+++ b/sql/handler.h
 
10
@@ -206,6 +206,8 @@
12
11
 #define HA_INPLACE_DROP_UNIQUE_INDEX_NO_WRITE      (1L << 9)
13
12
 #define HA_INPLACE_ADD_PK_INDEX_NO_WRITE           (1L << 10)
14
13
 #define HA_INPLACE_DROP_PK_INDEX_NO_WRITE          (1L << 11)
17
16
 /*
18
17
   HA_PARTITION_FUNCTION_SUPPORTED indicates that the function is
19
18
   supported at all.
20
 
diff -ruN a/sql/sql_class.h b/sql/sql_class.h
21
 
--- a/sql/sql_class.h   2010-12-02 20:31:56.200956501 +0900
22
 
+++ b/sql/sql_class.h   2010-12-03 13:51:04.744953174 +0900
 
19
--- a/sql/sql_class.h
 
20
+++ b/sql/sql_class.h
23
21
@@ -481,6 +481,8 @@
24
22
   my_bool engine_condition_pushdown;
25
23
   my_bool keep_files_on_create;
29
27
   my_bool old_alter_table;
30
28
   my_bool old_passwords;
31
29
   my_bool big_tables;
32
 
diff -ruN a/sql/sql_partition.cc b/sql/sql_partition.cc
33
 
--- a/sql/sql_partition.cc      2010-11-03 07:01:14.000000000 +0900
34
 
+++ b/sql/sql_partition.cc      2010-12-03 13:59:56.444039002 +0900
 
30
--- a/sql/sql_partition.cc
 
31
+++ b/sql/sql_partition.cc
35
32
@@ -4637,7 +4637,12 @@
36
33
         alter_info->num_parts= curr_part_no - new_part_no;
37
34
       }
46
43
     {
47
44
       my_error(ER_PARTITION_FUNCTION_FAILURE, MYF(0));
48
45
       goto err;
49
 
diff -ruN a/sql/sql_table.cc b/sql/sql_table.cc
50
 
--- a/sql/sql_table.cc  2010-11-03 07:01:14.000000000 +0900
51
 
+++ b/sql/sql_table.cc  2010-12-03 13:51:04.768955495 +0900
52
 
@@ -6116,6 +6116,10 @@
 
46
--- a/sql/sql_table.cc
 
47
+++ b/sql/sql_table.cc
 
48
@@ -6140,6 +6140,10 @@
53
49
     uint  *idx_end_p;
54
50
 
55
51
     alter_flags= table->file->alter_table_flags(alter_info->flags);
60
56
     DBUG_PRINT("info", ("alter_flags: %lu", alter_flags));
61
57
     /* Check dropped indexes. */
62
58
     for (idx_p= index_drop_buffer, idx_end_p= idx_p + index_drop_count;
63
 
diff -ruN a/sql/sys_vars.cc b/sql/sys_vars.cc
64
 
--- a/sql/sys_vars.cc   2010-12-02 21:23:05.569356468 +0900
65
 
+++ b/sql/sys_vars.cc   2010-12-03 14:05:28.857356603 +0900
 
59
--- a/sql/sys_vars.cc
 
60
+++ b/sql/sys_vars.cc
66
61
@@ -2186,6 +2186,13 @@
67
62
        GLOBAL_VAR(opt_optimizer_fix),
68
63
        NO_CMD_LINE, DEFAULT(TRUE));