Merge lp:~tsarev/percona-server/quilt-5.5-2 into lp:~stewart/percona-server/quilt-5.5

Proposed by Oleg Tsarev
Status: Rejected
Rejected by: Stewart Smith
Proposed branch: lp:~tsarev/percona-server/quilt-5.5-2
Merge into: lp:~stewart/percona-server/quilt-5.5
Prerequisite: lp:~tsarev/percona-server/quilt-5.5-1
Diff against target: 7372 lines (+1260/-1812)
54 files modified
patches/bug580324.patch (+6/-9)
patches/bug813587.patch (+4/-5)
patches/control_online_alter_index.patch (+10/-15)
patches/error_pad.patch (+2/-3)
patches/file-contents.patch (+2/-2)
patches/innodb_adaptive_hash_index_partitions.patch (+36/-54)
patches/innodb_admin_command_base.patch (+6/-9)
patches/innodb_buffer_pool_pages_i_s.patch (+10/-15)
patches/innodb_buffer_pool_shm.patch (+4/-6)
patches/innodb_bug60788.patch (+10/-11)
patches/innodb_deadlock_count.patch (+10/-15)
patches/innodb_dict_size_limit.patch (+26/-39)
patches/innodb_expand_fast_index_creation.patch (+20/-30)
patches/innodb_expand_import.patch (+14/-21)
patches/innodb_extend_slow.patch (+38/-52)
patches/innodb_extra_rseg.patch (+6/-9)
patches/innodb_fast_checksum.patch (+20/-30)
patches/innodb_files_extend.patch (+36/-54)
patches/innodb_fix_misc.patch (+50/-70)
patches/innodb_io_patches.patch (+38/-57)
patches/innodb_lru_dump_restore.patch (+33/-44)
patches/innodb_opt_lru_count.patch (+14/-21)
patches/innodb_overwrite_relay_log_info.patch (+10/-15)
patches/innodb_pass_corrupt_table.patch (+58/-87)
patches/innodb_recovery_patches.patch (+17/-25)
patches/innodb_separate_doublewrite.patch (+32/-48)
patches/innodb_show_lock_name.patch (+16/-24)
patches/innodb_show_status.patch (+26/-39)
patches/innodb_show_status_extend.patch (+18/-27)
patches/innodb_show_sys_tables.patch (+8/-12)
patches/innodb_split_buf_pool_mutex.patch (+42/-61)
patches/innodb_stats.patch (+56/-78)
patches/innodb_thread_concurrency_timer_based.patch (+6/-9)
patches/log_connection_error.patch (+4/-6)
patches/log_warnings_suppress.patch (+13/-19)
patches/microsec_process.patch (+4/-6)
patches/mysql-test.diff (+216/-324)
patches/mysql_dump_ignore_ct.patch (+4/-6)
patches/mysql_remove_eol_carret.patch (+8/-12)
patches/mysql_syslog.patch (+4/-6)
patches/optimizer_fix.patch (+12/-18)
patches/percona_support.patch (+2/-3)
patches/processlist_row_stats.patch (+6/-8)
patches/query_cache_enhance.patch (+14/-21)
patches/remove_fcntl_excessive_calls.patch (+4/-6)
patches/response_time_distribution.patch (+34/-50)
patches/show_slave_status_nolock.patch (+12/-18)
patches/show_temp.patch (+20/-30)
patches/slave_timeout_fix.patch (+2/-2)
patches/slow_extended.patch (+91/-113)
patches/sql_no_fcache.patch (+20/-30)
patches/start-stop-messages.patch (+13/-13)
patches/userstat.patch (+75/-101)
patches/utf8_general50_ci.patch (+18/-24)
To merge this branch: bzr merge lp:~tsarev/percona-server/quilt-5.5-2
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Yasufumi Kinoshita (community) Approve
Stewart Smith Pending
Review via email: mp+69435@code.launchpad.net

Commit message

1. patches/innodb_bug60788.patch: fix offsets
2. patches/innodb_extend_slow.patch: fix offsets
3. patches/innodb_fix_misc.patch: fix offsets
4. patches/innodb_lru_dump_restore.patch: updated on 'quilt refresh'
5. patches/innodb_recovery_patches.patch: fix offsets
6. patches/innodb_split_buf_pool_mutex.patch: updated on 'quilt refresh'
7. patches/innodb_stats.patch: updated on 'quilt refresh'
8. patches/processlist_row_stats.patch: fix offsets
9. patches/response-time-distribution.patch: fix offsets
10. patches/slow_extended.patch: updated on 'quilt refresh'
11. patches/start-stop-messages.patch: fix offsets
12. patches/userstat.patch: fix offsets
13. update all patches: remove timestamp from header
14. update all patches: remove "diff -ruN a/... b/..." - this is not good, but not found solution for this yet.

Description of the change

1. patches/innodb_bug60788.patch: fix offsets
2. patches/innodb_extend_slow.patch: fix offsets
3. patches/innodb_fix_misc.patch: fix offsets
4. patches/innodb_lru_dump_restore.patch: updated on 'quilt refresh'
5. patches/innodb_recovery_patches.patch: fix offsets
6. patches/innodb_split_buf_pool_mutex.patch: updated on 'quilt refresh'
7. patches/innodb_stats.patch: updated on 'quilt refresh'
8. patches/processlist_row_stats.patch: fix offsets
9. patches/response-time-distribution.patch: fix offsets
10. patches/slow_extended.patch: updated on 'quilt refresh'
11. patches/start-stop-messages.patch: fix offsets
12. patches/userstat.patch: fix offsets
13. update all patches: remove timestamp from header
14. update all patches: remove "diff -ruN a/... b/..." - this is not good, but not found solution for this yet.

To post a comment you must log in.
Revision history for this message
Oleg Tsarev (tsarev) wrote :

I checked correctness by following way:

rm -rf a b
bzr update -r 143
make clean && make all && mv Percona-Server-5.5.13-rel20.4 a
bzr update -r 144
make clean && make all && mv Percona-Server-5.5.13-rel20.4 b
diff -ruN a b # nothing to output

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) :
review: Approve
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

LGTM

review: Approve
Revision history for this message
Stewart Smith (stewart) wrote :

i've done this pretty much anyway, so we don't need this branch.

Unmerged revisions

144. By Oleg Tsarev

1. patches/innodb_bug60788.patch: fix offsets
2. patches/innodb_extend_slow.patch: fix offsets
3. patches/innodb_fix_misc.patch: fix offsets
4. patches/innodb_lru_dump_restore.patch: updated on 'quilt refresh'
5. patches/innodb_recovery_patches.patch: fix offsets
6. patches/innodb_split_buf_pool_mutex.patch: updated on 'quilt refresh'
7. patches/innodb_stats.patch: updated on 'quilt refresh'
8. patches/processlist_row_stats.patch: fix offsets
9. patches/response-time-distribution.patch: fix offsets
10. patches/slow_extended.patch: updated on 'quilt refresh'
11. patches/start-stop-messages.patch: fix offsets
12. patches/userstat.patch: fix offsets
13. update all patches: remove timestamp from header
14. update all patches: remove "diff -ruN a/... b/..." - this is not good, but not found solution for this yet.

143. By Oleg Tsarev

1. Makefile:
  * add symlink to quiltrc to $(PERCONA_SERVER) dir
  * split "main" target to "prepare" and "main" (prepare just unpack source code and setup for patch appling, main also apply patches)
  * add target "regenerate" (old normalize_patches.sh) (requires for future porting to new mysql version)
  * fix "clean" target
2. apply_patches:
  * fix usages: "--quiltrc=quiltrc"
  * now uses sh instead of bash
3. install_tests:
  * rename to install_tests from install_tests.sh
  * fix path to series
4. normalize_patches:
  * rename to normalize_patches from normalize_patches.sh
  * now use quilt for regenerate patches
5. quiltrc:
  * add QUILT_[REFRESH|DIFF|PATCH]_[ARGS|OPTS] options
6. regenerate_patch.sh:
  * removed (unecessary now)

142. By Stewart Smith

add back in applying of handlersocket patch, was accidently removed

141. By Stewart Smith

move to using quilt for patch management. also has fallback to piping patches to patch for systems without quilt installed

140. By Stewart Smith

merge FEDERATED bug fix of not clearing errors on close

139. By Stewart Smith

merge bug745241

138. By Alexey Kopytov

Merge from LP.

137. By Alexey Kopytov

Bug #745241: quering global_temporary_tables causes server crash

The problem was in an insufficient locking in
fill_global_temporary_tables(). Iterating thread's temporary_tables list
could lead to race conditions, because other server code assumes that
list to only be accessed by a single (the current) thread at any time.

Fixed by introducing a new mutex in THD protecting the temporary_tables
list and acquiring that mutex when modifying the list or in
fill_global_temporary_tables().

136. By Stewart Smith

merge fdatasync() usage for innodb log files

135. By Stewart Smith

merge bug 802829 fix

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'patches/bug580324.patch'
--- patches/bug580324.patch 2011-07-22 16:56:42 +0000
+++ patches/bug580324.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/sql/sql_base.cc b/sql/sql_base.cc8--- a/sql/sql_base.cc
9--- a/sql/sql_base.cc 2011-04-09 18:49:00.000000000 +04009+++ b/sql/sql_base.cc
10+++ b/sql/sql_base.cc 2011-04-09 18:49:02.000000000 +0400
11@@ -251,8 +251,12 @@10@@ -251,8 +251,12 @@
12 const TABLE_LIST *table_list,11 const TABLE_LIST *table_list,
13 bool tmp_table)12 bool tmp_table)
@@ -23,9 +22,8 @@
23 if (tmp_table)22 if (tmp_table)
24 {23 {
25 int4store(key + key_length, thd->server_id);24 int4store(key + key_length, thd->server_id);
26diff -ruN a/sql/sql_parse.cc b/sql/sql_parse.cc25--- a/sql/sql_parse.cc
27--- a/sql/sql_parse.cc 2011-04-09 18:49:00.000000000 +040026+++ b/sql/sql_parse.cc
28+++ b/sql/sql_parse.cc 2011-04-09 18:49:02.000000000 +0400
29@@ -1112,11 +1112,18 @@27@@ -1112,11 +1112,18 @@
30 break;28 break;
31 #else29 #else
@@ -93,9 +91,8 @@
93 thd->set_query(fields, query_length);91 thd->set_query(fields, query_length);
94 general_log_print(thd, command, "%s %s", table_list.table_name, fields);92 general_log_print(thd, command, "%s %s", table_list.table_name, fields);
95 93
96diff -ruN a/strings/ctype-utf8.c b/strings/ctype-utf8.c94--- a/strings/ctype-utf8.c
97--- a/strings/ctype-utf8.c 2011-04-09 18:48:03.000000000 +040095+++ b/strings/ctype-utf8.c
98+++ b/strings/ctype-utf8.c 2011-04-09 18:49:02.000000000 +0400
99@@ -4212,6 +4212,10 @@96@@ -4212,6 +4212,10 @@
100 {97 {
101 int code;98 int code;
10299
=== modified file 'patches/bug813587.patch'
--- patches/bug813587.patch 2011-07-22 16:56:42 +0000
+++ patches/bug813587.patch 2011-07-27 11:32:35 +0000
@@ -6,10 +6,9 @@
6# Clear MySQL connection errors in ha_federated::close(), since they6# Clear MySQL connection errors in ha_federated::close(), since they
7# can affect queries on other tables due to table cache eviction.7# can affect queries on other tables due to table cache eviction.
8#8#
9diff -ruN Percona-Server.orig/storage/federated/ha_federated.cc Percona-Server/storage/federated/ha_federated.cc9--- a/storage/federated/ha_federated.cc
10--- Percona-Server.orig/storage/federated/ha_federated.cc 2011-05-11 15:54:12.000000000 +040010+++ b/storage/federated/ha_federated.cc
11+++ Percona-Server/storage/federated/ha_federated.cc 2011-07-21 13:07:30.000000000 +040011@@ -1675,6 +1675,8 @@
12@@ -1675,6 +1675,8 @@ int ha_federated::open(const char *name,
13 12
14 int ha_federated::close(void)13 int ha_federated::close(void)
15 {14 {
@@ -18,7 +17,7 @@
18 DBUG_ENTER("ha_federated::close");17 DBUG_ENTER("ha_federated::close");
19 18
20 free_result();19 free_result();
21@@ -1685,6 +1687,10 @@ int ha_federated::close(void)20@@ -1685,6 +1687,10 @@
22 mysql_close(mysql);21 mysql_close(mysql);
23 mysql= NULL;22 mysql= NULL;
24 23
2524
=== modified file 'patches/control_online_alter_index.patch'
--- patches/control_online_alter_index.patch 2011-07-22 16:56:42 +0000
+++ patches/control_online_alter_index.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/sql/handler.h b/sql/handler.h8--- a/sql/handler.h
9--- a/sql/handler.h 2010-11-03 07:01:14.000000000 +09009+++ b/sql/handler.h
10+++ b/sql/handler.h 2010-12-03 13:51:04.727293058 +0900
11@@ -205,6 +205,8 @@10@@ -205,6 +205,8 @@
12 #define HA_INPLACE_DROP_UNIQUE_INDEX_NO_WRITE (1L << 9)11 #define HA_INPLACE_DROP_UNIQUE_INDEX_NO_WRITE (1L << 9)
13 #define HA_INPLACE_ADD_PK_INDEX_NO_WRITE (1L << 10)12 #define HA_INPLACE_ADD_PK_INDEX_NO_WRITE (1L << 10)
@@ -17,9 +16,8 @@
17 /*16 /*
18 HA_PARTITION_FUNCTION_SUPPORTED indicates that the function is17 HA_PARTITION_FUNCTION_SUPPORTED indicates that the function is
19 supported at all.18 supported at all.
20diff -ruN a/sql/sql_class.h b/sql/sql_class.h19--- a/sql/sql_class.h
21--- a/sql/sql_class.h 2010-12-02 20:31:56.200956501 +090020+++ b/sql/sql_class.h
22+++ b/sql/sql_class.h 2010-12-03 13:51:04.744953174 +0900
23@@ -481,6 +481,8 @@21@@ -481,6 +481,8 @@
24 my_bool engine_condition_pushdown;22 my_bool engine_condition_pushdown;
25 my_bool keep_files_on_create;23 my_bool keep_files_on_create;
@@ -29,9 +27,8 @@
29 my_bool old_alter_table;27 my_bool old_alter_table;
30 my_bool old_passwords;28 my_bool old_passwords;
31 my_bool big_tables;29 my_bool big_tables;
32diff -ruN a/sql/sql_partition.cc b/sql/sql_partition.cc30--- a/sql/sql_partition.cc
33--- a/sql/sql_partition.cc 2010-11-03 07:01:14.000000000 +090031+++ b/sql/sql_partition.cc
34+++ b/sql/sql_partition.cc 2010-12-03 13:59:56.444039002 +0900
35@@ -4636,7 +4636,12 @@32@@ -4636,7 +4636,12 @@
36 alter_info->num_parts= curr_part_no - new_part_no;33 alter_info->num_parts= curr_part_no - new_part_no;
37 }34 }
@@ -46,9 +43,8 @@
46 {43 {
47 my_error(ER_PARTITION_FUNCTION_FAILURE, MYF(0));44 my_error(ER_PARTITION_FUNCTION_FAILURE, MYF(0));
48 goto err;45 goto err;
49diff -ruN a/sql/sql_table.cc b/sql/sql_table.cc46--- a/sql/sql_table.cc
50--- a/sql/sql_table.cc 2010-11-03 07:01:14.000000000 +090047+++ b/sql/sql_table.cc
51+++ b/sql/sql_table.cc 2010-12-03 13:51:04.768955495 +0900
52@@ -6112,6 +6112,10 @@48@@ -6112,6 +6112,10 @@
53 uint *idx_end_p;49 uint *idx_end_p;
54 50
@@ -60,9 +56,8 @@
60 DBUG_PRINT("info", ("alter_flags: %lu", alter_flags));56 DBUG_PRINT("info", ("alter_flags: %lu", alter_flags));
61 /* Check dropped indexes. */57 /* Check dropped indexes. */
62 for (idx_p= index_drop_buffer, idx_end_p= idx_p + index_drop_count;58 for (idx_p= index_drop_buffer, idx_end_p= idx_p + index_drop_count;
63diff -ruN a/sql/sys_vars.cc b/sql/sys_vars.cc59--- a/sql/sys_vars.cc
64--- a/sql/sys_vars.cc 2010-12-02 21:23:05.569356468 +090060+++ b/sql/sys_vars.cc
65+++ b/sql/sys_vars.cc 2010-12-03 14:05:28.857356603 +0900
66@@ -2186,6 +2186,13 @@61@@ -2186,6 +2186,13 @@
67 GLOBAL_VAR(opt_optimizer_fix),62 GLOBAL_VAR(opt_optimizer_fix),
68 NO_CMD_LINE, DEFAULT(TRUE));63 NO_CMD_LINE, DEFAULT(TRUE));
6964
=== modified file 'patches/error_pad.patch'
--- patches/error_pad.patch 2011-07-22 16:56:42 +0000
+++ patches/error_pad.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/extra/comp_err.c b/extra/comp_err.c8--- a/extra/comp_err.c
9--- a/extra/comp_err.c 2011-04-09 18:48:04.000000000 +04009+++ b/extra/comp_err.c
10+++ b/extra/comp_err.c 2011-04-09 18:48:56.000000000 +0400
11@@ -30,11 +30,12 @@10@@ -30,11 +30,12 @@
12 #include <assert.h>11 #include <assert.h>
13 #include <my_dir.h>12 #include <my_dir.h>
1413
=== modified file 'patches/file-contents.patch'
--- patches/file-contents.patch 2011-07-22 16:56:42 +0000
+++ patches/file-contents.patch 2011-07-27 11:32:35 +0000
@@ -1,6 +1,6 @@
1--- a/mysql-test/t/file_contents.test1--- a/mysql-test/t/file_contents.test
2+++ b/mysql-test/t/file_contents.test2+++ b/mysql-test/t/file_contents.test
3@@ -20,7 +20,7 @@ if ($dir_bin =~ m|/usr/|) {3@@ -20,7 +20,7 @@
4 $dir_docs = "$dir_docs/packages/MySQL-server";4 $dir_docs = "$dir_docs/packages/MySQL-server";
5 } else {5 } else {
6 # RedHat: version number in directory name6 # RedHat: version number in directory name
@@ -9,7 +9,7 @@
9 }9 }
10 } elsif ($dir_bin =~ m|/usr$|) {10 } elsif ($dir_bin =~ m|/usr$|) {
11 # RPM build during development11 # RPM build during development
12@@ -28,9 +28,12 @@ if ($dir_bin =~ m|/usr/|) {12@@ -28,9 +28,12 @@
13 if(-d "$dir_docs/packages/MySQL-server") {13 if(-d "$dir_docs/packages/MySQL-server") {
14 # SuSE14 # SuSE
15 $dir_docs = "$dir_docs/packages/MySQL-server";15 $dir_docs = "$dir_docs/packages/MySQL-server";
1616
=== modified file 'patches/innodb_adaptive_hash_index_partitions.patch'
--- patches/innodb_adaptive_hash_index_partitions.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_adaptive_hash_index_partitions.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/btr/btr0btr.c b/storage/innobase/btr/btr0btr.c8--- a/storage/innobase/btr/btr0btr.c
9--- a/storage/innobase/btr/btr0btr.c 2010-12-04 15:52:23.355483176 +09009+++ b/storage/innobase/btr/btr0btr.c
10+++ b/storage/innobase/btr/btr0btr.c 2010-12-04 16:12:48.639514256 +0900
11@@ -1518,7 +1518,7 @@10@@ -1518,7 +1518,7 @@
12 }11 }
13 ut_a(block);12 ut_a(block);
@@ -80,9 +79,8 @@
80 79
81 if (left_page_no == FIL_NULL && !page_is_leaf(page)) {80 if (left_page_no == FIL_NULL && !page_is_leaf(page)) {
82 81
83diff -ruN a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c82--- a/storage/innobase/btr/btr0cur.c
84--- a/storage/innobase/btr/btr0cur.c 2010-12-04 15:52:23.359513820 +090083+++ b/storage/innobase/btr/btr0cur.c
85+++ b/storage/innobase/btr/btr0cur.c 2010-12-04 16:12:48.643551837 +0900
86@@ -498,7 +498,7 @@84@@ -498,7 +498,7 @@
87 #ifdef UNIV_SEARCH_PERF_STAT85 #ifdef UNIV_SEARCH_PERF_STAT
88 info->n_searches++;86 info->n_searches++;
@@ -162,9 +160,8 @@
162 }160 }
163 161
164 btr_cur_del_mark_set_sec_rec_log(rec, val, mtr);162 btr_cur_del_mark_set_sec_rec_log(rec, val, mtr);
165diff -ruN a/storage/innobase/btr/btr0sea.c b/storage/innobase/btr/btr0sea.c163--- a/storage/innobase/btr/btr0sea.c
166--- a/storage/innobase/btr/btr0sea.c 2010-12-04 15:52:23.387513429 +0900164+++ b/storage/innobase/btr/btr0sea.c
167+++ b/storage/innobase/btr/btr0sea.c 2010-12-04 16:14:51.721884049 +0900
168@@ -48,6 +48,8 @@165@@ -48,6 +48,8 @@
169 UNIV_INTERN char btr_search_enabled = TRUE;166 UNIV_INTERN char btr_search_enabled = TRUE;
170 UNIV_INTERN ibool btr_search_fully_disabled = FALSE;167 UNIV_INTERN ibool btr_search_fully_disabled = FALSE;
@@ -961,9 +958,8 @@
961 if (UNIV_LIKELY_NULL(heap)) {958 if (UNIV_LIKELY_NULL(heap)) {
962 mem_heap_free(heap);959 mem_heap_free(heap);
963 }960 }
964diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c961--- a/storage/innobase/buf/buf0buf.c
965--- a/storage/innobase/buf/buf0buf.c 2010-12-04 15:55:21.351597052 +0900962+++ b/storage/innobase/buf/buf0buf.c
966+++ b/storage/innobase/buf/buf0buf.c 2010-12-04 16:12:48.654550708 +0900
967@@ -949,6 +949,7 @@963@@ -949,6 +949,7 @@
968 964
969 block->check_index_page_at_flush = FALSE;965 block->check_index_page_at_flush = FALSE;
@@ -1016,9 +1012,8 @@
1016 1012
1017 block->n_hash_helps = 0;1013 block->n_hash_helps = 0;
1018 block->is_hashed = FALSE;1014 block->is_hashed = FALSE;
1019diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c1015--- a/storage/innobase/buf/buf0lru.c
1020--- a/storage/innobase/buf/buf0lru.c 2010-12-04 15:35:29.137347521 +09001016+++ b/storage/innobase/buf/buf0lru.c
1021+++ b/storage/innobase/buf/buf0lru.c 2010-12-04 16:12:48.658550840 +0900
1022@@ -1798,7 +1798,7 @@1017@@ -1798,7 +1798,7 @@
1023 1018
1024 UNIV_MEM_VALID(((buf_block_t*) bpage)->frame,1019 UNIV_MEM_VALID(((buf_block_t*) bpage)->frame,
@@ -1028,9 +1023,8 @@
1028 UNIV_MEM_INVALID(((buf_block_t*) bpage)->frame,1023 UNIV_MEM_INVALID(((buf_block_t*) bpage)->frame,
1029 UNIV_PAGE_SIZE);1024 UNIV_PAGE_SIZE);
1030 1025
1031diff -ruN a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c1026--- a/storage/innobase/dict/dict0dict.c
1032--- a/storage/innobase/dict/dict0dict.c 2010-12-04 15:52:23.398513916 +09001027+++ b/storage/innobase/dict/dict0dict.c
1033+++ b/storage/innobase/dict/dict0dict.c 2010-12-04 16:12:48.662550715 +0900
1034@@ -1811,7 +1811,7 @@1028@@ -1811,7 +1811,7 @@
1035 zero. */1029 zero. */
1036 1030
@@ -1040,9 +1034,8 @@
1040 if (ref_count == 0) {1034 if (ref_count == 0) {
1041 break;1035 break;
1042 }1036 }
1043diff -ruN a/storage/innobase/ha/ha0ha.c b/storage/innobase/ha/ha0ha.c1037--- a/storage/innobase/ha/ha0ha.c
1044--- a/storage/innobase/ha/ha0ha.c 2010-11-03 07:01:13.000000000 +09001038+++ b/storage/innobase/ha/ha0ha.c
1045+++ b/storage/innobase/ha/ha0ha.c 2010-12-04 16:12:48.665593752 +0900
1046@@ -102,7 +102,8 @@1039@@ -102,7 +102,8 @@
1047 ut_ad(table);1040 ut_ad(table);
1048 ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);1041 ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);
@@ -1053,9 +1046,8 @@
1053 #endif /* UNIV_SYNC_DEBUG */1046 #endif /* UNIV_SYNC_DEBUG */
1054 1047
1055 #ifndef UNIV_HOTBACKUP1048 #ifndef UNIV_HOTBACKUP
1056diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc1049--- a/storage/innobase/handler/ha_innodb.cc
1057--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 16:12:20.185850734 +09001050+++ b/storage/innobase/handler/ha_innodb.cc
1058+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 16:12:48.674552412 +0900
1059@@ -11702,6 +11702,11 @@1051@@ -11702,6 +11702,11 @@
1060 "Disable with --skip-innodb-adaptive-hash-index.",1052 "Disable with --skip-innodb-adaptive-hash-index.",
1061 NULL, innodb_adaptive_hash_index_update, TRUE);1053 NULL, innodb_adaptive_hash_index_update, TRUE);
@@ -1076,9 +1068,8 @@
1076 MYSQL_SYSVAR(stats_method),1068 MYSQL_SYSVAR(stats_method),
1077 MYSQL_SYSVAR(replication_delay),1069 MYSQL_SYSVAR(replication_delay),
1078 MYSQL_SYSVAR(status_file),1070 MYSQL_SYSVAR(status_file),
1079diff -ruN a/storage/innobase/include/btr0sea.h b/storage/innobase/include/btr0sea.h1071--- a/storage/innobase/include/btr0sea.h
1080--- a/storage/innobase/include/btr0sea.h 2010-12-03 15:48:03.070987226 +09001072+++ b/storage/innobase/include/btr0sea.h
1081+++ b/storage/innobase/include/btr0sea.h 2010-12-04 16:12:48.707551382 +0900
1082@@ -85,7 +85,8 @@1073@@ -85,7 +85,8 @@
1083 ulint1074 ulint
1084 btr_search_info_get_ref_count(1075 btr_search_info_get_ref_count(
@@ -1174,9 +1165,8 @@
1174 1165
1175 #ifdef UNIV_SEARCH_PERF_STAT1166 #ifdef UNIV_SEARCH_PERF_STAT
1176 /** Number of successful adaptive hash index lookups */1167 /** Number of successful adaptive hash index lookups */
1177diff -ruN a/storage/innobase/include/btr0sea.ic b/storage/innobase/include/btr0sea.ic1168--- a/storage/innobase/include/btr0sea.ic
1178--- a/storage/innobase/include/btr0sea.ic 2010-11-03 07:01:13.000000000 +09001169+++ b/storage/innobase/include/btr0sea.ic
1179+++ b/storage/innobase/include/btr0sea.ic 2010-12-04 16:12:48.709511202 +0900
1180@@ -62,8 +62,8 @@1170@@ -62,8 +62,8 @@
1181 btr_search_t* info;1171 btr_search_t* info;
1182 1172
@@ -1261,9 +1251,8 @@
1261+ }1251+ }
1262+}1252+}
1263+1253+
1264diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h1254--- a/storage/innobase/include/buf0buf.h
1265--- a/storage/innobase/include/buf0buf.h 2010-12-15 19:00:07.713604580 +09001255+++ b/storage/innobase/include/buf0buf.h
1266+++ b/storage/innobase/include/buf0buf.h 2010-12-15 20:58:03.546839883 +0900
1267@@ -1546,7 +1546,7 @@1256@@ -1546,7 +1546,7 @@
1268 pointers in the adaptive hash index1257 pointers in the adaptive hash index
1269 pointing to this frame */1258 pointing to this frame */
@@ -1281,9 +1270,8 @@
1281 /* @} */1270 /* @} */
1282 # ifdef UNIV_SYNC_DEBUG1271 # ifdef UNIV_SYNC_DEBUG
1283 /** @name Debug fields */1272 /** @name Debug fields */
1284diff -ruN a/storage/innobase/include/row0upd.ic b/storage/innobase/include/row0upd.ic1273--- a/storage/innobase/include/row0upd.ic
1285--- a/storage/innobase/include/row0upd.ic 2010-11-03 07:01:13.000000000 +09001274+++ b/storage/innobase/include/row0upd.ic
1286+++ b/storage/innobase/include/row0upd.ic 2010-12-04 16:12:48.710551113 +0900
1287@@ -158,7 +158,7 @@1275@@ -158,7 +158,7 @@
1288 ut_ad(dict_index_is_clust(index));1276 ut_ad(dict_index_is_clust(index));
1289 ut_ad(rec_offs_validate(rec, index, offsets));1277 ut_ad(rec_offs_validate(rec, index, offsets));
@@ -1293,9 +1281,8 @@
1293 ut_ad(!buf_block_align(rec)->is_hashed);1281 ut_ad(!buf_block_align(rec)->is_hashed);
1294 }1282 }
1295 #endif /* UNIV_SYNC_DEBUG */1283 #endif /* UNIV_SYNC_DEBUG */
1296diff -ruN a/storage/innobase/page/page0page.c b/storage/innobase/page/page0page.c1284--- a/storage/innobase/page/page0page.c
1297--- a/storage/innobase/page/page0page.c 2010-11-03 07:01:13.000000000 +09001285+++ b/storage/innobase/page/page0page.c
1298+++ b/storage/innobase/page/page0page.c 2010-12-04 16:12:48.712550963 +0900
1299@@ -218,7 +218,7 @@1286@@ -218,7 +218,7 @@
1300 const ibool is_hashed = block->is_hashed;1287 const ibool is_hashed = block->is_hashed;
1301 1288
@@ -1314,9 +1301,8 @@
1314 }1301 }
1315 #endif /* !UNIV_HOTBACKUP */1302 #endif /* !UNIV_HOTBACKUP */
1316 }1303 }
1317diff -ruN a/storage/innobase/page/page0zip.c b/storage/innobase/page/page0zip.c1304--- a/storage/innobase/page/page0zip.c
1318--- a/storage/innobase/page/page0zip.c 2010-12-04 15:57:13.061494433 +09001305+++ b/storage/innobase/page/page0zip.c
1319+++ b/storage/innobase/page/page0zip.c 2010-12-04 16:12:48.716470334 +0900
1320@@ -4444,7 +4444,7 @@1306@@ -4444,7 +4444,7 @@
1321 1307
1322 #ifndef UNIV_HOTBACKUP1308 #ifndef UNIV_HOTBACKUP
@@ -1326,9 +1312,8 @@
1326 block->check_index_page_at_flush = TRUE;1312 block->check_index_page_at_flush = TRUE;
1327 #else /* !UNIV_HOTBACKUP */1313 #else /* !UNIV_HOTBACKUP */
1328 ut_ad(block == back_block1);1314 ut_ad(block == back_block1);
1329diff -ruN a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c1315--- a/storage/innobase/row/row0sel.c
1330--- a/storage/innobase/row/row0sel.c 2010-12-04 16:09:53.204513572 +09001316+++ b/storage/innobase/row/row0sel.c
1331+++ b/storage/innobase/row/row0sel.c 2010-12-04 16:12:48.722551273 +0900
1332@@ -1210,7 +1210,7 @@1317@@ -1210,7 +1210,7 @@
1333 ut_ad(plan->unique_search);1318 ut_ad(plan->unique_search);
1334 ut_ad(!plan->must_get_clust);1319 ut_ad(!plan->must_get_clust);
@@ -1486,9 +1471,8 @@
1486 trx->has_search_latch = FALSE;1471 trx->has_search_latch = FALSE;
1487 }1472 }
1488 1473
1489diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c1474--- a/storage/innobase/srv/srv0srv.c
1490--- a/storage/innobase/srv/srv0srv.c 2010-12-04 16:12:20.231484679 +09001475+++ b/storage/innobase/srv/srv0srv.c
1491+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 16:12:48.726551018 +0900
1492@@ -2045,7 +2045,9 @@1476@@ -2045,7 +2045,9 @@
1493 "-------------------------------------\n", file);1477 "-------------------------------------\n", file);
1494 ibuf_print(file);1478 ibuf_print(file);
@@ -1533,9 +1517,8 @@
1533 (ulong) btr_search_sys_subtotal,1517 (ulong) btr_search_sys_subtotal,
1534 1518
1535 (ulong) (buf_pool_from_array(0)->page_hash->n_cells * sizeof(hash_cell_t)),1519 (ulong) (buf_pool_from_array(0)->page_hash->n_cells * sizeof(hash_cell_t)),
1536diff -ruN a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c1520--- a/storage/innobase/sync/sync0sync.c
1537--- a/storage/innobase/sync/sync0sync.c 2010-12-03 17:36:44.300986571 +09001521+++ b/storage/innobase/sync/sync0sync.c
1538+++ b/storage/innobase/sync/sync0sync.c 2010-12-04 16:12:48.729513564 +0900
1539@@ -1223,7 +1223,6 @@1522@@ -1223,7 +1223,6 @@
1540 case SYNC_OUTER_ANY_LATCH:1523 case SYNC_OUTER_ANY_LATCH:
1541 case SYNC_FILE_FORMAT_TAG:1524 case SYNC_FILE_FORMAT_TAG:
@@ -1552,9 +1535,8 @@
1552 case SYNC_BUF_LRU_LIST:1535 case SYNC_BUF_LRU_LIST:
1553 case SYNC_BUF_FLUSH_LIST:1536 case SYNC_BUF_FLUSH_LIST:
1554 case SYNC_BUF_PAGE_HASH:1537 case SYNC_BUF_PAGE_HASH:
1555diff -ruN a/storage/innobase/trx/trx0trx.c b/storage/innobase/trx/trx0trx.c1538--- a/storage/innobase/trx/trx0trx.c
1556--- a/storage/innobase/trx/trx0trx.c 2010-12-03 17:49:11.623953784 +09001539+++ b/storage/innobase/trx/trx0trx.c
1557+++ b/storage/innobase/trx/trx0trx.c 2010-12-04 16:12:48.731513275 +0900
1558@@ -265,8 +265,14 @@1540@@ -265,8 +265,14 @@
1559 /*=================================*/1541 /*=================================*/
1560 trx_t* trx) /*!< in: transaction */1542 trx_t* trx) /*!< in: transaction */
15611543
=== modified file 'patches/innodb_admin_command_base.patch'
--- patches/innodb_admin_command_base.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_admin_command_base.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:32:15.624039043 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:32:35.424957827 +0900
11@@ -11863,7 +11863,8 @@10@@ -11863,7 +11863,8 @@
12 i_s_innodb_sys_foreign_cols,11 i_s_innodb_sys_foreign_cols,
13 i_s_innodb_sys_stats,12 i_s_innodb_sys_stats,
@@ -18,9 +17,8 @@
18 mysql_declare_plugin_end;17 mysql_declare_plugin_end;
19 18
20 /** @brief Initialize the default value of innodb_commit_concurrency.19 /** @brief Initialize the default value of innodb_commit_concurrency.
21diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc20--- a/storage/innobase/handler/i_s.cc
22--- a/storage/innobase/handler/i_s.cc 2010-12-03 17:30:16.299955549 +090021+++ b/storage/innobase/handler/i_s.cc
23+++ b/storage/innobase/handler/i_s.cc 2010-12-03 17:32:35.425989972 +0900
24@@ -4177,3 +4177,139 @@22@@ -4177,3 +4177,139 @@
25 STRUCT_FLD(system_vars, NULL),23 STRUCT_FLD(system_vars, NULL),
26 STRUCT_FLD(__reserved1, NULL)24 STRUCT_FLD(__reserved1, NULL)
@@ -161,9 +159,8 @@
161+ STRUCT_FLD(system_vars, NULL),159+ STRUCT_FLD(system_vars, NULL),
162+ STRUCT_FLD(__reserved1, NULL)160+ STRUCT_FLD(__reserved1, NULL)
163+};161+};
164diff -ruN a/storage/innobase/handler/i_s.h b/storage/innobase/handler/i_s.h162--- a/storage/innobase/handler/i_s.h
165--- a/storage/innobase/handler/i_s.h 2010-12-03 17:30:16.301987692 +0900163+++ b/storage/innobase/handler/i_s.h
166+++ b/storage/innobase/handler/i_s.h 2010-12-03 17:32:35.426954555 +0900
167@@ -46,5 +46,6 @@164@@ -46,5 +46,6 @@
168 extern struct st_mysql_plugin i_s_innodb_sys_stats;165 extern struct st_mysql_plugin i_s_innodb_sys_stats;
169 extern struct st_mysql_plugin i_s_innodb_table_stats;166 extern struct st_mysql_plugin i_s_innodb_table_stats;
170167
=== modified file 'patches/innodb_buffer_pool_pages_i_s.patch'
--- patches/innodb_buffer_pool_pages_i_s.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_buffer_pool_pages_i_s.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2010-12-04 20:20:44.595483291 +09009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2010-12-06 19:28:04.055227506 +0900
11@@ -4560,6 +4560,36 @@10@@ -4560,6 +4560,36 @@
12 mutex_exit(block_mutex);11 mutex_exit(block_mutex);
13 }12 }
@@ -45,9 +44,8 @@
45 /*********************************************************************//**44 /*********************************************************************//**
46 Asserts that all file pages in the buffer are in a replaceable state.45 Asserts that all file pages in the buffer are in a replaceable state.
47 @return TRUE */46 @return TRUE */
48diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc47--- a/storage/innobase/handler/ha_innodb.cc
49--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 20:20:44.614551139 +090048+++ b/storage/innobase/handler/ha_innodb.cc
50+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-06 19:23:47.622195800 +0900
51@@ -12148,6 +12148,9 @@49@@ -12148,6 +12148,9 @@
52 i_s_innodb_sys_stats,50 i_s_innodb_sys_stats,
53 i_s_innodb_table_stats,51 i_s_innodb_table_stats,
@@ -58,9 +56,8 @@
58 i_s_innodb_admin_command56 i_s_innodb_admin_command
59 mysql_declare_plugin_end;57 mysql_declare_plugin_end;
60 58
61diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc59--- a/storage/innobase/handler/i_s.cc
62--- a/storage/innobase/handler/i_s.cc 2010-12-04 19:46:39.786513783 +090060+++ b/storage/innobase/handler/i_s.cc
63+++ b/storage/innobase/handler/i_s.cc 2010-12-06 19:28:52.270226921 +0900
64@@ -51,6 +51,7 @@61@@ -51,6 +51,7 @@
65 #include "trx0sys.h" /* for trx_sys */62 #include "trx0sys.h" /* for trx_sys */
66 #include "dict0dict.h" /* for dict_sys */63 #include "dict0dict.h" /* for dict_sys */
@@ -771,9 +768,8 @@
771+ STRUCT_FLD(__reserved1, NULL)768+ STRUCT_FLD(__reserved1, NULL)
772+};769+};
773+770+
774diff -ruN a/storage/innobase/handler/i_s.h b/storage/innobase/handler/i_s.h771--- a/storage/innobase/handler/i_s.h
775--- a/storage/innobase/handler/i_s.h 2010-12-04 19:46:39.657513849 +0900772+++ b/storage/innobase/handler/i_s.h
776+++ b/storage/innobase/handler/i_s.h 2010-12-06 19:23:47.635192988 +0900
777@@ -47,5 +47,8 @@773@@ -47,5 +47,8 @@
778 extern struct st_mysql_plugin i_s_innodb_table_stats;774 extern struct st_mysql_plugin i_s_innodb_table_stats;
779 extern struct st_mysql_plugin i_s_innodb_index_stats;775 extern struct st_mysql_plugin i_s_innodb_index_stats;
@@ -783,9 +779,8 @@
783+extern struct st_mysql_plugin i_s_innodb_buffer_pool_pages_blob;779+extern struct st_mysql_plugin i_s_innodb_buffer_pool_pages_blob;
784 780
785 #endif /* i_s_h */781 #endif /* i_s_h */
786diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h782--- a/storage/innobase/include/buf0buf.h
787--- a/storage/innobase/include/buf0buf.h 2010-12-04 19:46:40.197471531 +0900783+++ b/storage/innobase/include/buf0buf.h
788+++ b/storage/innobase/include/buf0buf.h 2010-12-06 19:23:47.638195824 +0900
789@@ -1144,6 +1144,14 @@784@@ -1144,6 +1144,14 @@
790 /*===========*/785 /*===========*/
791 const buf_pool_t* buf_pool) /*!< in: buffer pool */786 const buf_pool_t* buf_pool) /*!< in: buffer pool */
792787
=== modified file 'patches/innodb_buffer_pool_shm.patch'
--- patches/innodb_buffer_pool_shm.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_buffer_pool_shm.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2011-04-09 18:48:47.000000000 +04009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2011-04-09 18:48:48.000000000 +0400
11@@ -1006,10 +1006,12 @@10@@ -1006,10 +1006,12 @@
12 buf_block_t* block;11 buf_block_t* block;
13 byte* frame;12 byte* frame;
@@ -32,9 +31,8 @@
32 /* Init block structs and assign frames for them. Then we31 /* Init block structs and assign frames for them. Then we
33 assign the frames to the first blocks (we already mapped the32 assign the frames to the first blocks (we already mapped the
34 memory above). */33 memory above). */
35diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc34--- a/storage/innobase/handler/ha_innodb.cc
36--- a/storage/innobase/handler/ha_innodb.cc 2011-04-09 18:48:47.000000000 +040035+++ b/storage/innobase/handler/ha_innodb.cc
37+++ b/storage/innobase/handler/ha_innodb.cc 2011-04-09 18:48:48.000000000 +0400
38@@ -194,6 +194,8 @@36@@ -194,6 +194,8 @@
39 static my_bool innobase_create_status_file = FALSE;37 static my_bool innobase_create_status_file = FALSE;
40 static my_bool innobase_stats_on_metadata = TRUE;38 static my_bool innobase_stats_on_metadata = TRUE;
4139
=== modified file 'patches/innodb_bug60788.patch'
--- patches/innodb_bug60788.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_bug60788.patch 2011-07-27 11:32:35 +0000
@@ -7,10 +7,9 @@
7# Changes InnoDB IO code so that fsync(), pread() and pwrite() are restarted7# Changes InnoDB IO code so that fsync(), pread() and pwrite() are restarted
8# when interrupted by a signal.8# when interrupted by a signal.
9#9#
10diff -ruN a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c10--- a/storage/innobase/os/os0file.c
11--- a/storage/innobase/os/os0file.c 2011-04-20 12:09:57.000000000 +040011+++ b/storage/innobase/os/os0file.c
12+++ b/storage/innobase/os/os0file.c 2011-04-20 12:10:04.000000000 +040012@@ -2093,6 +2093,9 @@
13@@ -2092,6 +2092,9 @@
14 failures++;13 failures++;
15 14
16 retry = TRUE;15 retry = TRUE;
@@ -20,7 +19,7 @@
20 } else {19 } else {
21 20
22 retry = FALSE;21 retry = FALSE;
23@@ -2222,6 +2225,7 @@22@@ -2223,6 +2226,7 @@
24 off_t offs;23 off_t offs;
25 #if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)24 #if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)
26 ssize_t n_bytes;25 ssize_t n_bytes;
@@ -28,7 +27,7 @@
28 #endif /* HAVE_PREAD && !HAVE_BROKEN_PREAD */27 #endif /* HAVE_PREAD && !HAVE_BROKEN_PREAD */
29 ulint sec;28 ulint sec;
30 ulint ms;29 ulint ms;
31@@ -2262,7 +2266,18 @@30@@ -2263,7 +2267,18 @@
32 os_n_pending_reads++;31 os_n_pending_reads++;
33 os_mutex_exit(os_file_count_mutex);32 os_mutex_exit(os_file_count_mutex);
34 33
@@ -48,7 +47,7 @@
48 47
49 os_mutex_enter(os_file_count_mutex);48 os_mutex_enter(os_file_count_mutex);
50 os_file_n_pending_preads--;49 os_file_n_pending_preads--;
51@@ -2281,6 +2296,7 @@50@@ -2282,6 +2297,7 @@
52 {51 {
53 off_t ret_offset;52 off_t ret_offset;
54 ssize_t ret;53 ssize_t ret;
@@ -56,7 +55,7 @@
56 #ifndef UNIV_HOTBACKUP55 #ifndef UNIV_HOTBACKUP
57 ulint i;56 ulint i;
58 #endif /* !UNIV_HOTBACKUP */57 #endif /* !UNIV_HOTBACKUP */
59@@ -2301,7 +2317,17 @@58@@ -2302,7 +2318,17 @@
60 if (ret_offset < 0) {59 if (ret_offset < 0) {
61 ret = -1;60 ret = -1;
62 } else {61 } else {
@@ -75,7 +74,7 @@
75 }74 }
76 75
77 #ifndef UNIV_HOTBACKUP76 #ifndef UNIV_HOTBACKUP
78@@ -2340,6 +2366,7 @@77@@ -2341,6 +2367,7 @@
79 offset */78 offset */
80 {79 {
81 ssize_t ret;80 ssize_t ret;
@@ -83,7 +82,7 @@
83 off_t offs;82 off_t offs;
84 83
85 ut_a((offset & 0xFFFFFFFFUL) == offset);84 ut_a((offset & 0xFFFFFFFFUL) == offset);
86@@ -2367,7 +2394,18 @@85@@ -2368,7 +2395,18 @@
87 os_n_pending_writes++;86 os_n_pending_writes++;
88 os_mutex_exit(os_file_count_mutex);87 os_mutex_exit(os_file_count_mutex);
89 88
@@ -103,7 +102,7 @@
103 102
104 os_mutex_enter(os_file_count_mutex);103 os_mutex_enter(os_file_count_mutex);
105 os_file_n_pending_pwrites--;104 os_file_n_pending_pwrites--;
106@@ -2414,7 +2452,17 @@105@@ -2415,7 +2453,17 @@
107 goto func_exit;106 goto func_exit;
108 }107 }
109 108
110109
=== modified file 'patches/innodb_deadlock_count.patch'
--- patches/innodb_deadlock_count.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_deadlock_count.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 16:09:53.145500265 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 16:10:24.605515894 +0900
11@@ -686,6 +686,8 @@10@@ -686,6 +686,8 @@
12 (char*) &export_vars.innodb_dblwr_pages_written, SHOW_LONG},11 (char*) &export_vars.innodb_dblwr_pages_written, SHOW_LONG},
13 {"dblwr_writes",12 {"dblwr_writes",
@@ -17,9 +16,8 @@
17 {"dict_tables",16 {"dict_tables",
18 (char*) &export_vars.innodb_dict_tables, SHOW_LONG},17 (char*) &export_vars.innodb_dict_tables, SHOW_LONG},
19 {"have_atomic_builtins",18 {"have_atomic_builtins",
20diff -ruN a/storage/innobase/include/lock0lock.h b/storage/innobase/include/lock0lock.h19--- a/storage/innobase/include/lock0lock.h
21--- a/storage/innobase/include/lock0lock.h 2010-11-03 07:01:13.000000000 +090020+++ b/storage/innobase/include/lock0lock.h
22+++ b/storage/innobase/include/lock0lock.h 2010-12-04 16:10:24.605515894 +0900
23@@ -43,6 +43,7 @@21@@ -43,6 +43,7 @@
24 #endif /* UNIV_DEBUG */22 #endif /* UNIV_DEBUG */
25 /* Buffer for storing information about the most recent deadlock error */23 /* Buffer for storing information about the most recent deadlock error */
@@ -28,9 +26,8 @@
28 26
29 /*********************************************************************//**27 /*********************************************************************//**
30 Gets the size of a lock struct.28 Gets the size of a lock struct.
31diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h29--- a/storage/innobase/include/srv0srv.h
32--- a/storage/innobase/include/srv0srv.h 2010-12-04 15:55:21.378480843 +090030+++ b/storage/innobase/include/srv0srv.h
33+++ b/storage/innobase/include/srv0srv.h 2010-12-04 16:10:24.606550983 +0900
34@@ -758,6 +758,7 @@31@@ -758,6 +758,7 @@
35 ulint innodb_buffer_pool_read_ahead_evicted;/*!< srv_read_ahead evicted*/32 ulint innodb_buffer_pool_read_ahead_evicted;/*!< srv_read_ahead evicted*/
36 ulint innodb_dblwr_pages_written; /*!< srv_dblwr_pages_written */33 ulint innodb_dblwr_pages_written; /*!< srv_dblwr_pages_written */
@@ -39,9 +36,8 @@
39 ibool innodb_have_atomic_builtins; /*!< HAVE_ATOMIC_BUILTINS */36 ibool innodb_have_atomic_builtins; /*!< HAVE_ATOMIC_BUILTINS */
40 ulint innodb_log_waits; /*!< srv_log_waits */37 ulint innodb_log_waits; /*!< srv_log_waits */
41 ulint innodb_log_write_requests; /*!< srv_log_write_requests */38 ulint innodb_log_write_requests; /*!< srv_log_write_requests */
42diff -ruN a/storage/innobase/lock/lock0lock.c b/storage/innobase/lock/lock0lock.c39--- a/storage/innobase/lock/lock0lock.c
43--- a/storage/innobase/lock/lock0lock.c 2010-12-03 17:49:11.609953956 +090040+++ b/storage/innobase/lock/lock0lock.c
44+++ b/storage/innobase/lock/lock0lock.c 2010-12-04 16:10:24.608513889 +0900
45@@ -3328,6 +3328,7 @@41@@ -3328,6 +3328,7 @@
46 break;42 break;
47 43
@@ -50,9 +46,8 @@
50 fputs("*** WE ROLL BACK TRANSACTION (2)\n",46 fputs("*** WE ROLL BACK TRANSACTION (2)\n",
51 lock_latest_err_file);47 lock_latest_err_file);
52 break;48 break;
53diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c49--- a/storage/innobase/srv/srv0srv.c
54--- a/storage/innobase/srv/srv0srv.c 2010-12-04 15:57:13.069513371 +090050+++ b/storage/innobase/srv/srv0srv.c
55+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 16:10:24.610593039 +0900
56@@ -468,6 +468,7 @@51@@ -468,6 +468,7 @@
57 static ulint srv_n_rows_deleted_old = 0;52 static ulint srv_n_rows_deleted_old = 0;
58 static ulint srv_n_rows_read_old = 0;53 static ulint srv_n_rows_read_old = 0;
5954
=== modified file 'patches/innodb_dict_size_limit.patch'
--- patches/innodb_dict_size_limit.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_dict_size_limit.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/btr/btr0sea.c b/storage/innobase/btr/btr0sea.c8--- a/storage/innobase/btr/btr0sea.c
9--- a/storage/innobase/btr/btr0sea.c 2010-11-03 07:01:13.000000000 +09009+++ b/storage/innobase/btr/btr0sea.c
10+++ b/storage/innobase/btr/btr0sea.c 2010-12-03 15:45:47.503988924 +0900
11@@ -1185,6 +1185,179 @@10@@ -1185,6 +1185,179 @@
12 mem_free(folds);11 mem_free(folds);
13 }12 }
@@ -188,9 +187,8 @@
188 /********************************************************************//**187 /********************************************************************//**
189 Drops a page hash index when a page is freed from a fseg to the file system.188 Drops a page hash index when a page is freed from a fseg to the file system.
190 Drops possible hash index if the page happens to be in the buffer pool. */189 Drops possible hash index if the page happens to be in the buffer pool. */
191diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c190--- a/storage/innobase/buf/buf0buf.c
192--- a/storage/innobase/buf/buf0buf.c 2011-02-01 18:00:03.000000000 +0900191+++ b/storage/innobase/buf/buf0buf.c
193+++ b/storage/innobase/buf/buf0buf.c 2011-02-01 18:01:59.000000000 +0900
194@@ -294,14 +294,14 @@192@@ -294,14 +294,14 @@
195 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */193 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */
196 #endif /* UNIV_PFS_MUTEX || UNIV_PFS_RWLOCK */194 #endif /* UNIV_PFS_MUTEX || UNIV_PFS_RWLOCK */
@@ -214,9 +212,8 @@
214 #endif /* !UNIV_HOTBACKUP */212 #endif /* !UNIV_HOTBACKUP */
215 213
216 /********************************************************************//**214 /********************************************************************//**
217diff -ruN a/storage/innobase/dict/dict0boot.c b/storage/innobase/dict/dict0boot.c215--- a/storage/innobase/dict/dict0boot.c
218--- a/storage/innobase/dict/dict0boot.c 2010-11-03 07:01:13.000000000 +0900216+++ b/storage/innobase/dict/dict0boot.c
219+++ b/storage/innobase/dict/dict0boot.c 2010-12-03 15:45:47.503988924 +0900
220@@ -284,6 +284,7 @@217@@ -284,6 +284,7 @@
221 system tables */218 system tables */
222 /*-------------------------*/219 /*-------------------------*/
@@ -249,9 +246,8 @@
249 246
250 dict_mem_table_add_col(table, heap, "INDEX_ID", DATA_BINARY, 0, 0);247 dict_mem_table_add_col(table, heap, "INDEX_ID", DATA_BINARY, 0, 0);
251 dict_mem_table_add_col(table, heap, "POS", DATA_INT, 0, 4);248 dict_mem_table_add_col(table, heap, "POS", DATA_INT, 0, 4);
252diff -ruN a/storage/innobase/dict/dict0crea.c b/storage/innobase/dict/dict0crea.c249--- a/storage/innobase/dict/dict0crea.c
253--- a/storage/innobase/dict/dict0crea.c 2010-11-03 07:01:13.000000000 +0900250+++ b/storage/innobase/dict/dict0crea.c
254+++ b/storage/innobase/dict/dict0crea.c 2010-12-03 15:45:47.521955810 +0900
255@@ -1210,6 +1210,9 @@251@@ -1210,6 +1210,9 @@
256 /* Foreign constraint system tables have already been252 /* Foreign constraint system tables have already been
257 created, and they are ok */253 created, and they are ok */
@@ -274,9 +270,8 @@
274 row_mysql_unlock_data_dictionary(trx);270 row_mysql_unlock_data_dictionary(trx);
275 271
276 trx_free_for_mysql(trx);272 trx_free_for_mysql(trx);
277diff -ruN a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c273--- a/storage/innobase/dict/dict0dict.c
278--- a/storage/innobase/dict/dict0dict.c 2010-11-03 07:01:13.000000000 +0900274+++ b/storage/innobase/dict/dict0dict.c
279+++ b/storage/innobase/dict/dict0dict.c 2010-12-03 15:45:47.525953769 +0900
280@@ -626,6 +626,8 @@275@@ -626,6 +626,8 @@
281 276
282 table = dict_table_get_on_id_low(table_id);277 table = dict_table_get_on_id_low(table_id);
@@ -372,9 +367,8 @@
372 /* We always create search info whether or not adaptive367 /* We always create search info whether or not adaptive
373 hash index is enabled or not. */368 hash index is enabled or not. */
374 info = index->search_info;369 info = index->search_info;
375diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc370--- a/storage/innobase/handler/ha_innodb.cc
376--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:43:57.294986852 +0900371+++ b/storage/innobase/handler/ha_innodb.cc
377+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:45:47.534959966 +0900
378@@ -674,6 +674,8 @@372@@ -674,6 +674,8 @@
379 (char*) &export_vars.innodb_dblwr_pages_written, SHOW_LONG},373 (char*) &export_vars.innodb_dblwr_pages_written, SHOW_LONG},
380 {"dblwr_writes",374 {"dblwr_writes",
@@ -404,9 +398,8 @@
404 MYSQL_SYSVAR(use_sys_malloc),398 MYSQL_SYSVAR(use_sys_malloc),
405 MYSQL_SYSVAR(use_native_aio),399 MYSQL_SYSVAR(use_native_aio),
406 MYSQL_SYSVAR(change_buffering),400 MYSQL_SYSVAR(change_buffering),
407diff -ruN a/storage/innobase/ibuf/ibuf0ibuf.c b/storage/innobase/ibuf/ibuf0ibuf.c401--- a/storage/innobase/ibuf/ibuf0ibuf.c
408--- a/storage/innobase/ibuf/ibuf0ibuf.c 2010-12-03 15:18:48.889024455 +0900402+++ b/storage/innobase/ibuf/ibuf0ibuf.c
409+++ b/storage/innobase/ibuf/ibuf0ibuf.c 2010-12-03 15:45:47.553025057 +0900
410@@ -566,6 +566,7 @@403@@ -566,6 +566,7 @@
411 404
412 /* Use old-style record format for the insert buffer. */405 /* Use old-style record format for the insert buffer. */
@@ -415,9 +408,8 @@
415 408
416 dict_mem_table_add_col(table, heap, "DUMMY_COLUMN", DATA_BINARY, 0, 0);409 dict_mem_table_add_col(table, heap, "DUMMY_COLUMN", DATA_BINARY, 0, 0);
417 410
418diff -ruN a/storage/innobase/include/btr0sea.h b/storage/innobase/include/btr0sea.h411--- a/storage/innobase/include/btr0sea.h
419--- a/storage/innobase/include/btr0sea.h 2010-11-03 07:01:13.000000000 +0900412+++ b/storage/innobase/include/btr0sea.h
420+++ b/storage/innobase/include/btr0sea.h 2010-12-03 15:45:47.555024229 +0900
421@@ -140,6 +140,13 @@413@@ -140,6 +140,13 @@
422 s- or x-latched, or an index page414 s- or x-latched, or an index page
423 for which we know that415 for which we know that
@@ -432,9 +424,8 @@
432 /********************************************************************//**424 /********************************************************************//**
433 Drops a page hash index when a page is freed from a fseg to the file system.425 Drops a page hash index when a page is freed from a fseg to the file system.
434 Drops possible hash index if the page happens to be in the buffer pool. */426 Drops possible hash index if the page happens to be in the buffer pool. */
435diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h427--- a/storage/innobase/include/buf0buf.h
436--- a/storage/innobase/include/buf0buf.h 2011-02-01 18:00:03.000000000 +0900428+++ b/storage/innobase/include/buf0buf.h
437+++ b/storage/innobase/include/buf0buf.h 2011-02-01 18:03:29.000000000 +0900
438@@ -1555,6 +1555,15 @@429@@ -1555,6 +1555,15 @@
439 #define BUF_POOL_ZIP_FOLD_BPAGE(b) BUF_POOL_ZIP_FOLD((buf_block_t*) (b))430 #define BUF_POOL_ZIP_FOLD_BPAGE(b) BUF_POOL_ZIP_FOLD((buf_block_t*) (b))
440 /* @} */431 /* @} */
@@ -451,9 +442,8 @@
451 /** @brief The buffer pool statistics structure. */442 /** @brief The buffer pool statistics structure. */
452 struct buf_pool_stat_struct{443 struct buf_pool_stat_struct{
453 ulint n_page_gets; /*!< number of page gets performed;444 ulint n_page_gets; /*!< number of page gets performed;
454diff -ruN a/storage/innobase/include/dict0dict.h b/storage/innobase/include/dict0dict.h445--- a/storage/innobase/include/dict0dict.h
455--- a/storage/innobase/include/dict0dict.h 2010-11-03 07:01:13.000000000 +0900446+++ b/storage/innobase/include/dict0dict.h
456+++ b/storage/innobase/include/dict0dict.h 2010-12-03 15:45:47.558024515 +0900
457@@ -1170,6 +1170,12 @@447@@ -1170,6 +1170,12 @@
458 /*====================================*/448 /*====================================*/
459 dict_table_t* table, /*!< in: table */449 dict_table_t* table, /*!< in: table */
@@ -467,9 +457,8 @@
467 /* Buffers for storing detailed information about the latest foreign key457 /* Buffers for storing detailed information about the latest foreign key
468 and unique key errors */458 and unique key errors */
469 extern FILE* dict_foreign_err_file;459 extern FILE* dict_foreign_err_file;
470diff -ruN a/storage/innobase/include/dict0dict.ic b/storage/innobase/include/dict0dict.ic460--- a/storage/innobase/include/dict0dict.ic
471--- a/storage/innobase/include/dict0dict.ic 2010-11-03 07:01:13.000000000 +0900461+++ b/storage/innobase/include/dict0dict.ic
472+++ b/storage/innobase/include/dict0dict.ic 2010-12-03 15:45:47.560024398 +0900
473@@ -824,6 +824,13 @@462@@ -824,6 +824,13 @@
474 HASH_SEARCH(name_hash, dict_sys->table_hash, table_fold,463 HASH_SEARCH(name_hash, dict_sys->table_hash, table_fold,
475 dict_table_t*, table, ut_ad(table->cached),464 dict_table_t*, table, ut_ad(table->cached),
@@ -497,9 +486,8 @@
497 ut_ad(!table || table->cached);486 ut_ad(!table || table->cached);
498 487
499 /* TODO: should get the type information from MySQL */488 /* TODO: should get the type information from MySQL */
500diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h489--- a/storage/innobase/include/srv0srv.h
501--- a/storage/innobase/include/srv0srv.h 2010-12-03 15:43:57.297067100 +0900490+++ b/storage/innobase/include/srv0srv.h
502+++ b/storage/innobase/include/srv0srv.h 2010-12-03 15:45:47.562024404 +0900
503@@ -229,6 +229,7 @@491@@ -229,6 +229,7 @@
504 extern ulint srv_read_ahead;492 extern ulint srv_read_ahead;
505 extern ulint srv_adaptive_flushing_method;493 extern ulint srv_adaptive_flushing_method;
@@ -516,9 +504,8 @@
516 ulint innodb_buffer_pool_pages_total; /*!< Buffer pool size */504 ulint innodb_buffer_pool_pages_total; /*!< Buffer pool size */
517 ulint innodb_buffer_pool_pages_data; /*!< Data pages */505 ulint innodb_buffer_pool_pages_data; /*!< Data pages */
518 ulint innodb_buffer_pool_pages_dirty; /*!< Dirty data pages */506 ulint innodb_buffer_pool_pages_dirty; /*!< Dirty data pages */
519diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c507--- a/storage/innobase/srv/srv0srv.c
520--- a/storage/innobase/srv/srv0srv.c 2010-12-03 15:43:57.301024390 +0900508+++ b/storage/innobase/srv/srv0srv.c
521+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 15:45:47.565023830 +0900
522@@ -415,6 +415,8 @@509@@ -415,6 +415,8 @@
523 UNIV_INTERN ulint srv_enable_unsafe_group_commit = 0; /* 0:disable 1:enable */510 UNIV_INTERN ulint srv_enable_unsafe_group_commit = 0; /* 0:disable 1:enable */
524 UNIV_INTERN ulint srv_read_ahead = 3; /* 1: random 2: linear 3: Both */511 UNIV_INTERN ulint srv_read_ahead = 3; /* 1: random 2: linear 3: Both */
525512
=== modified file 'patches/innodb_expand_fast_index_creation.patch'
--- patches/innodb_expand_fast_index_creation.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_expand_fast_index_creation.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5# ALTER TABLE and OPTIMIZE TABLE.5# ALTER TABLE and OPTIMIZE TABLE.
6#6#
7#7#
8diff -ruN a/client/client_priv.h b/client/client_priv.h8--- a/client/client_priv.h
9--- a/client/client_priv.h 2011-04-11 08:57:20.000000000 +04009+++ b/client/client_priv.h
10+++ b/client/client_priv.h 2011-04-11 08:57:21.000000000 +0400
11@@ -90,6 +90,7 @@10@@ -90,6 +90,7 @@
12 OPT_NO_REMOVE_EOL_CARRET,11 OPT_NO_REMOVE_EOL_CARRET,
13 OPT_DEFAULT_AUTH,12 OPT_DEFAULT_AUTH,
@@ -16,9 +15,8 @@
16 OPT_MAX_CLIENT_OPTION15 OPT_MAX_CLIENT_OPTION
17 };16 };
18 17
19diff -ruN a/client/mysqldump.c b/client/mysqldump.c18--- a/client/mysqldump.c
20--- a/client/mysqldump.c 2011-04-11 08:57:17.000000000 +040019+++ b/client/mysqldump.c
21+++ b/client/mysqldump.c 2011-04-11 08:57:21.000000000 +0400
22@@ -45,6 +45,7 @@20@@ -45,6 +45,7 @@
23 #include <m_ctype.h>21 #include <m_ctype.h>
24 #include <hash.h>22 #include <hash.h>
@@ -173,9 +171,8 @@
173 /* Moved enable keys to before unlock per bug 15977 */171 /* Moved enable keys to before unlock per bug 15977 */
174 if (opt_disable_keys)172 if (opt_disable_keys)
175 {173 {
176diff -ruN /dev/null b/mysql-test/r/percona_mysqldump_innodb_optimize_keys.result174--- /dev/null
177--- /dev/null 1970-01-01 00:00:00.000000000 +0000175+++ b/mysql-test/r/percona_mysqldump_innodb_optimize_keys.result
178+++ b/mysql-test/r/percona_mysqldump_innodb_optimize_keys.result 2011-04-11 08:57:21.000000000 +0400
179@@ -0,0 +1,109 @@176@@ -0,0 +1,109 @@
180+#177+#
181+# Test the --innodb-optimize-keys option.178+# Test the --innodb-optimize-keys option.
@@ -286,9 +283,8 @@
286+283+
287+######################################284+######################################
288+DROP TABLE t1, t2;285+DROP TABLE t1, t2;
289diff -ruN a/mysql-test/suite/innodb/r/innodb.result b/mysql-test/suite/innodb/r/innodb.result286--- a/mysql-test/suite/innodb/r/innodb.result
290--- a/mysql-test/suite/innodb/r/innodb.result 2011-03-31 17:36:17.000000000 +0400287+++ b/mysql-test/suite/innodb/r/innodb.result
291+++ b/mysql-test/suite/innodb/r/innodb.result 2011-04-11 23:26:45.000000000 +0400
292@@ -1673,7 +1673,7 @@288@@ -1673,7 +1673,7 @@
293 71289 71
294 SELECT variable_value - @innodb_rows_inserted_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_inserted';290 SELECT variable_value - @innodb_rows_inserted_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_inserted';
@@ -298,9 +294,8 @@
298 SELECT variable_value - @innodb_rows_updated_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_updated';294 SELECT variable_value - @innodb_rows_updated_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_updated';
299 variable_value - @innodb_rows_updated_orig295 variable_value - @innodb_rows_updated_orig
300 866296 866
301diff -ruN a/mysql-test/suite/innodb/t/innodb-index.test b/mysql-test/suite/innodb/t/innodb-index.test297--- a/mysql-test/suite/innodb/t/innodb-index.test
302--- a/mysql-test/suite/innodb/t/innodb-index.test 2011-03-31 17:36:17.000000000 +0400298+++ b/mysql-test/suite/innodb/t/innodb-index.test
303+++ b/mysql-test/suite/innodb/t/innodb-index.test 2011-04-11 08:57:21.000000000 +0400
304@@ -28,6 +28,11 @@299@@ -28,6 +28,11 @@
305 show create table t1;300 show create table t1;
306 --error ER_MULTIPLE_PRI_KEY301 --error ER_MULTIPLE_PRI_KEY
@@ -313,9 +308,8 @@
313 --error ER_DUP_ENTRY308 --error ER_DUP_ENTRY
314 alter table t1 drop primary key, add primary key (b);309 alter table t1 drop primary key, add primary key (b);
315 create unique index c on t1 (c);310 create unique index c on t1 (c);
316diff -ruN a/mysql-test/suite/innodb/t/innodb.test b/mysql-test/suite/innodb/t/innodb.test311--- a/mysql-test/suite/innodb/t/innodb.test
317--- a/mysql-test/suite/innodb/t/innodb.test 2011-03-31 17:36:17.000000000 +0400312+++ b/mysql-test/suite/innodb/t/innodb.test
318+++ b/mysql-test/suite/innodb/t/innodb.test 2011-04-11 08:57:21.000000000 +0400
319@@ -21,6 +21,12 @@313@@ -21,6 +21,12 @@
320 314
321 -- source include/have_innodb.inc315 -- source include/have_innodb.inc
@@ -329,9 +323,8 @@
329 let $MYSQLD_DATADIR= `select @@datadir`;323 let $MYSQLD_DATADIR= `select @@datadir`;
330 324
331 # Save the original values of some variables in order to be able to325 # Save the original values of some variables in order to be able to
332diff -ruN /dev/null b/mysql-test/t/percona_mysqldump_innodb_optimize_keys.test326--- /dev/null
333--- /dev/null 1970-01-01 00:00:00.000000000 +0000327+++ b/mysql-test/t/percona_mysqldump_innodb_optimize_keys.test
334+++ b/mysql-test/t/percona_mysqldump_innodb_optimize_keys.test 2011-04-11 08:57:21.000000000 +0400
335@@ -0,0 +1,62 @@328@@ -0,0 +1,62 @@
336+# Embedded server doesn't support external clients329+# Embedded server doesn't support external clients
337+--source include/not_embedded.inc330+--source include/not_embedded.inc
@@ -395,9 +388,8 @@
395+388+
396+# Wait till we reached the initial number of concurrent sessions389+# Wait till we reached the initial number of concurrent sessions
397+--source include/wait_until_count_sessions.inc390+--source include/wait_until_count_sessions.inc
398diff -ruN a/sql/sql_lex.cc b/sql/sql_lex.cc391--- a/sql/sql_lex.cc
399--- a/sql/sql_lex.cc 2011-04-11 08:57:17.000000000 +0400392+++ b/sql/sql_lex.cc
400+++ b/sql/sql_lex.cc 2011-04-11 08:57:21.000000000 +0400
401@@ -1630,6 +1630,9 @@393@@ -1630,6 +1630,9 @@
402 alter_list(rhs.alter_list, mem_root),394 alter_list(rhs.alter_list, mem_root),
403 key_list(rhs.key_list, mem_root),395 key_list(rhs.key_list, mem_root),
@@ -416,9 +408,8 @@
416 /* partition_names are not deeply copied currently */408 /* partition_names are not deeply copied currently */
417 }409 }
418 410
419diff -ruN a/sql/sql_lex.h b/sql/sql_lex.h411--- a/sql/sql_lex.h
420--- a/sql/sql_lex.h 2011-04-11 08:57:19.000000000 +0400412+++ b/sql/sql_lex.h
421+++ b/sql/sql_lex.h 2011-04-11 08:57:21.000000000 +0400
422@@ -1003,6 +1003,9 @@413@@ -1003,6 +1003,9 @@
423 List<Alter_column> alter_list;414 List<Alter_column> alter_list;
424 List<Key> key_list;415 List<Key> key_list;
@@ -448,9 +439,8 @@
448 flags= 0;439 flags= 0;
449 keys_onoff= LEAVE_AS_IS;440 keys_onoff= LEAVE_AS_IS;
450 tablespace_op= NO_TABLESPACE_OP;441 tablespace_op= NO_TABLESPACE_OP;
451diff -ruN a/sql/sql_table.cc b/sql/sql_table.cc442--- a/sql/sql_table.cc
452--- a/sql/sql_table.cc 2011-04-11 08:56:57.000000000 +0400443+++ b/sql/sql_table.cc
453+++ b/sql/sql_table.cc 2011-04-11 23:30:02.000000000 +0400
454@@ -2773,7 +2773,7 @@444@@ -2773,7 +2773,7 @@
455 file The handler for the new table.445 file The handler for the new table.
456 key_info_buffer OUT An array of KEY structs for the indexes.446 key_info_buffer OUT An array of KEY structs for the indexes.
457447
=== modified file 'patches/innodb_expand_import.patch'
--- patches/innodb_expand_import.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_expand_import.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/btr/btr0btr.c b/storage/innobase/btr/btr0btr.c8--- a/storage/innobase/btr/btr0btr.c
9--- a/storage/innobase/btr/btr0btr.c 2011-04-11 19:44:03.000000000 +09009+++ b/storage/innobase/btr/btr0btr.c
10+++ b/storage/innobase/btr/btr0btr.c 2011-05-24 20:30:12.455852287 +0900
11@@ -837,7 +837,7 @@10@@ -837,7 +837,7 @@
12 /**************************************************************//**11 /**************************************************************//**
13 Creates a new index page (not the root, and also not12 Creates a new index page (not the root, and also not
@@ -35,9 +34,8 @@
35 void34 void
36 btr_attach_half_pages(35 btr_attach_half_pages(
37 /*==================*/36 /*==================*/
38diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c37--- a/storage/innobase/fil/fil0fil.c
39--- a/storage/innobase/fil/fil0fil.c 2010-12-03 15:09:51.274957577 +090038+++ b/storage/innobase/fil/fil0fil.c
40+++ b/storage/innobase/fil/fil0fil.c 2010-12-03 15:52:23.553986552 +0900
41@@ -40,6 +40,14 @@39@@ -40,6 +40,14 @@
42 #include "dict0dict.h"40 #include "dict0dict.h"
43 #include "page0page.h"41 #include "page0page.h"
@@ -865,9 +863,8 @@
865 return(success);863 return(success);
866 }864 }
867 #endif /* !UNIV_HOTBACKUP */865 #endif /* !UNIV_HOTBACKUP */
868diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc866--- a/storage/innobase/handler/ha_innodb.cc
869--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:49:59.195023983 +0900867+++ b/storage/innobase/handler/ha_innodb.cc
870+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:52:23.555957062 +0900
871@@ -7377,6 +7377,14 @@868@@ -7377,6 +7377,14 @@
872 err = row_discard_tablespace_for_mysql(dict_table->name, trx);869 err = row_discard_tablespace_for_mysql(dict_table->name, trx);
873 } else {870 } else {
@@ -903,9 +900,8 @@
903 MYSQL_SYSVAR(dict_size_limit),900 MYSQL_SYSVAR(dict_size_limit),
904 MYSQL_SYSVAR(use_sys_malloc),901 MYSQL_SYSVAR(use_sys_malloc),
905 MYSQL_SYSVAR(use_native_aio),902 MYSQL_SYSVAR(use_native_aio),
906diff -ruN a/storage/innobase/include/btr0btr.h b/storage/innobase/include/btr0btr.h903--- a/storage/innobase/include/btr0btr.h
907--- a/storage/innobase/include/btr0btr.h 2011-04-11 19:44:03.000000000 +0900904+++ b/storage/innobase/include/btr0btr.h
908+++ b/storage/innobase/include/btr0btr.h 2011-05-24 20:30:12.459853343 +0900
909@@ -219,6 +219,17 @@905@@ -219,6 +219,17 @@
910 @return the uncompressed page frame */906 @return the uncompressed page frame */
911 # define btr_page_get(space,zip_size,page_no,mode,mtr) \907 # define btr_page_get(space,zip_size,page_no,mode,mtr) \
@@ -1018,9 +1014,8 @@
1018 /****************************************************************//**1014 /****************************************************************//**
1019 Sets a record as the predefined minimum record. */1015 Sets a record as the predefined minimum record. */
1020 UNIV_INTERN1016 UNIV_INTERN
1021diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h1017--- a/storage/innobase/include/srv0srv.h
1022--- a/storage/innobase/include/srv0srv.h 2010-12-03 15:48:03.077954270 +09001018+++ b/storage/innobase/include/srv0srv.h
1023+++ b/storage/innobase/include/srv0srv.h 2010-12-03 15:52:23.561986996 +0900
1024@@ -229,6 +229,8 @@1019@@ -229,6 +229,8 @@
1025 extern ulint srv_read_ahead;1020 extern ulint srv_read_ahead;
1026 extern ulint srv_adaptive_flushing_method;1021 extern ulint srv_adaptive_flushing_method;
@@ -1030,9 +1025,8 @@
1030 extern ulint srv_dict_size_limit;1025 extern ulint srv_dict_size_limit;
1031 /*-------------------------------------------*/1026 /*-------------------------------------------*/
1032 1027
1033diff -ruN a/storage/innobase/row/row0mysql.c b/storage/innobase/row/row0mysql.c1028--- a/storage/innobase/row/row0mysql.c
1034--- a/storage/innobase/row/row0mysql.c 2011-04-11 19:44:03.000000000 +09001029+++ b/storage/innobase/row/row0mysql.c
1035+++ b/storage/innobase/row/row0mysql.c 2011-06-06 11:53:18.395764565 +0900
1036@@ -2568,6 +2568,11 @@1030@@ -2568,6 +2568,11 @@
1037 1031
1038 current_lsn = log_get_lsn();1032 current_lsn = log_get_lsn();
@@ -1057,9 +1051,8 @@
1057 return((int) err);1051 return((int) err);
1058 }1052 }
1059 1053
1060diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c1054--- a/storage/innobase/srv/srv0srv.c
1061--- a/storage/innobase/srv/srv0srv.c 2010-12-03 15:49:59.230956118 +09001055+++ b/storage/innobase/srv/srv0srv.c
1062+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 15:52:23.562954411 +0900
1063@@ -416,6 +416,8 @@1056@@ -416,6 +416,8 @@
1064 UNIV_INTERN ulint srv_read_ahead = 3; /* 1: random 2: linear 3: Both */1057 UNIV_INTERN ulint srv_read_ahead = 3; /* 1: random 2: linear 3: Both */
1065 UNIV_INTERN ulint srv_adaptive_flushing_method = 0; /* 0: native 1: estimate 2: keep_average */1058 UNIV_INTERN ulint srv_adaptive_flushing_method = 0; /* 0: native 1: estimate 2: keep_average */
10661059
=== modified file 'patches/innodb_extend_slow.patch'
--- patches/innodb_extend_slow.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_extend_slow.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2010-12-03 15:49:59.175955882 +09009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2010-12-03 17:42:42.074307123 +0900
11@@ -51,6 +51,40 @@10@@ -51,6 +51,40 @@
12 #include "dict0dict.h"11 #include "dict0dict.h"
13 #include "log0recv.h"12 #include "log0recv.h"
@@ -237,9 +236,8 @@
237 return(TRUE);236 return(TRUE);
238 }237 }
239 238
240diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c239--- a/storage/innobase/buf/buf0rea.c
241--- a/storage/innobase/buf/buf0rea.c 2010-12-03 17:32:15.617037263 +0900240+++ b/storage/innobase/buf/buf0rea.c
242+++ b/storage/innobase/buf/buf0rea.c 2010-12-03 17:42:42.075297193 +0900
243@@ -77,7 +77,8 @@241@@ -77,7 +77,8 @@
244 treat the tablespace as dropped; this is a timestamp we242 treat the tablespace as dropped; this is a timestamp we
245 use to stop dangling page reads from a tablespace243 use to stop dangling page reads from a tablespace
@@ -332,9 +330,8 @@
332 }330 }
333 }331 }
334 332
335diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c333--- a/storage/innobase/fil/fil0fil.c
336--- a/storage/innobase/fil/fil0fil.c 2010-12-03 15:53:54.610037199 +0900334+++ b/storage/innobase/fil/fil0fil.c
337+++ b/storage/innobase/fil/fil0fil.c 2010-12-03 17:42:42.079064198 +0900
338@@ -4747,7 +4747,7 @@335@@ -4747,7 +4747,7 @@
339 node->name, node->handle, buf,336 node->name, node->handle, buf,
340 offset_low, offset_high,337 offset_low, offset_high,
@@ -373,9 +370,8 @@
373 #endif370 #endif
374 ut_a(ret);371 ut_a(ret);
375 372
376diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc373--- a/storage/innobase/handler/ha_innodb.cc
377--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:36:44.293955189 +0900374+++ b/storage/innobase/handler/ha_innodb.cc
378+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:42:42.090024586 +0900
379@@ -1573,6 +1573,16 @@375@@ -1573,6 +1573,16 @@
380 trx->check_unique_secondary = !thd_test_options(376 trx->check_unique_secondary = !thd_test_options(
381 thd, OPTION_RELAXED_UNIQUE_CHECKS);377 thd, OPTION_RELAXED_UNIQUE_CHECKS);
@@ -452,9 +448,8 @@
452 448
453 trx->mysql_n_tables_locked = 0;449 trx->mysql_n_tables_locked = 0;
454 prebuilt->used_in_HANDLER = FALSE;450 prebuilt->used_in_HANDLER = FALSE;
455diff -ruN a/storage/innobase/include/buf0rea.h b/storage/innobase/include/buf0rea.h451--- a/storage/innobase/include/buf0rea.h
456--- a/storage/innobase/include/buf0rea.h 2010-12-03 15:18:48.891024406 +0900452+++ b/storage/innobase/include/buf0rea.h
457+++ b/storage/innobase/include/buf0rea.h 2010-12-03 17:42:42.096026873 +0900
458@@ -27,6 +27,7 @@453@@ -27,6 +27,7 @@
459 #define buf0rea_h454 #define buf0rea_h
460 455
@@ -483,9 +478,8 @@
483 /********************************************************************//**478 /********************************************************************//**
484 Issues read requests for pages which the ibuf module wants to read in, in479 Issues read requests for pages which the ibuf module wants to read in, in
485 order to contract the insert buffer tree. Technically, this function is like480 order to contract the insert buffer tree. Technically, this function is like
486diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h481--- a/storage/innobase/include/fil0fil.h
487--- a/storage/innobase/include/fil0fil.h 2010-12-03 15:09:51.290958543 +0900482+++ b/storage/innobase/include/fil0fil.h
488+++ b/storage/innobase/include/fil0fil.h 2010-12-03 17:42:42.097027548 +0900
489@@ -611,9 +611,12 @@483@@ -611,9 +611,12 @@
490 Reads or writes data. This operation is asynchronous (aio).484 Reads or writes data. This operation is asynchronous (aio).
491 @return DB_SUCCESS, or DB_TABLESPACE_DELETED if we are trying to do485 @return DB_SUCCESS, or DB_TABLESPACE_DELETED if we are trying to do
@@ -511,9 +505,8 @@
511 /**********************************************************************//**505 /**********************************************************************//**
512 Waits for an aio operation to complete. This function is used to write the506 Waits for an aio operation to complete. This function is used to write the
513 handler for completed requests. The aio array of pending requests is divided507 handler for completed requests. The aio array of pending requests is divided
514diff -ruN a/storage/innobase/include/os0file.h b/storage/innobase/include/os0file.h508--- a/storage/innobase/include/os0file.h
515--- a/storage/innobase/include/os0file.h 2010-11-03 07:01:13.000000000 +0900509+++ b/storage/innobase/include/os0file.h
516+++ b/storage/innobase/include/os0file.h 2010-12-03 17:42:42.100023783 +0900
517@@ -36,6 +36,7 @@510@@ -36,6 +36,7 @@
518 #define os0file_h511 #define os0file_h
519 512
@@ -601,9 +594,8 @@
601 /************************************************************************//**594 /************************************************************************//**
602 Wakes up all async i/o threads so that they know to exit themselves in595 Wakes up all async i/o threads so that they know to exit themselves in
603 shutdown. */596 shutdown. */
604diff -ruN a/storage/innobase/include/os0file.ic b/storage/innobase/include/os0file.ic597--- a/storage/innobase/include/os0file.ic
605--- a/storage/innobase/include/os0file.ic 2010-11-03 07:01:13.000000000 +0900598+++ b/storage/innobase/include/os0file.ic
606+++ b/storage/innobase/include/os0file.ic 2010-12-03 17:42:42.102024458 +0900
607@@ -229,6 +229,7 @@599@@ -229,6 +229,7 @@
608 (can be used to identify a completed600 (can be used to identify a completed
609 aio operation); ignored if mode is601 aio operation); ignored if mode is
@@ -638,9 +630,8 @@
638 630
639 register_pfs_file_io_end(locker, n);631 register_pfs_file_io_end(locker, n);
640 632
641diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h633--- a/storage/innobase/include/srv0srv.h
642--- a/storage/innobase/include/srv0srv.h 2010-12-03 17:32:15.634987408 +0900634+++ b/storage/innobase/include/srv0srv.h
643+++ b/storage/innobase/include/srv0srv.h 2010-12-03 17:42:42.104028644 +0900
644@@ -71,6 +71,9 @@635@@ -71,6 +71,9 @@
645 #define SRV_AUTO_EXTEND_INCREMENT \636 #define SRV_AUTO_EXTEND_INCREMENT \
646 (srv_auto_extend_increment * ((1024 * 1024) / UNIV_PAGE_SIZE))637 (srv_auto_extend_increment * ((1024 * 1024) / UNIV_PAGE_SIZE))
@@ -651,9 +642,8 @@
651 /* Mutex for locking srv_monitor_file */642 /* Mutex for locking srv_monitor_file */
652 extern mutex_t srv_monitor_file_mutex;643 extern mutex_t srv_monitor_file_mutex;
653 /* Temporary file for innodb monitor output */644 /* Temporary file for innodb monitor output */
654diff -ruN a/storage/innobase/include/trx0trx.h b/storage/innobase/include/trx0trx.h645--- a/storage/innobase/include/trx0trx.h
655--- a/storage/innobase/include/trx0trx.h 2010-12-03 15:41:52.049372966 +0900646+++ b/storage/innobase/include/trx0trx.h
656+++ b/storage/innobase/include/trx0trx.h 2010-12-03 17:42:42.107024532 +0900
657@@ -743,6 +743,17 @@647@@ -743,6 +743,17 @@
658 /*------------------------------*/648 /*------------------------------*/
659 char detailed_error[256]; /*!< detailed error message for last649 char detailed_error[256]; /*!< detailed error message for last
@@ -672,9 +662,8 @@
672 };662 };
673 663
674 #define TRX_MAX_N_THREADS 32 /* maximum number of664 #define TRX_MAX_N_THREADS 32 /* maximum number of
675diff -ruN a/storage/innobase/lock/lock0lock.c b/storage/innobase/lock/lock0lock.c665--- a/storage/innobase/lock/lock0lock.c
676--- a/storage/innobase/lock/lock0lock.c 2010-12-03 15:09:51.297986437 +0900666+++ b/storage/innobase/lock/lock0lock.c
677+++ b/storage/innobase/lock/lock0lock.c 2010-12-03 17:42:42.111024587 +0900
678@@ -1755,6 +1755,8 @@667@@ -1755,6 +1755,8 @@
679 {668 {
680 lock_t* lock;669 lock_t* lock;
@@ -715,9 +704,8 @@
715 trx->que_state = TRX_QUE_LOCK_WAIT;704 trx->que_state = TRX_QUE_LOCK_WAIT;
716 trx->was_chosen_as_deadlock_victim = FALSE;705 trx->was_chosen_as_deadlock_victim = FALSE;
717 trx->wait_started = time(NULL);706 trx->wait_started = time(NULL);
718diff -ruN a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c707--- a/storage/innobase/os/os0file.c
719--- a/storage/innobase/os/os0file.c 2010-12-03 17:32:15.644024974 +0900708+++ b/storage/innobase/os/os0file.c
720+++ b/storage/innobase/os/os0file.c 2010-12-03 17:42:42.117023467 +0900
721@@ -43,6 +43,8 @@709@@ -43,6 +43,8 @@
722 #include "srv0start.h"710 #include "srv0start.h"
723 #include "fil0fil.h"711 #include "fil0fil.h"
@@ -727,7 +715,7 @@
727 #include "log0recv.h"715 #include "log0recv.h"
728 #ifndef UNIV_HOTBACKUP716 #ifndef UNIV_HOTBACKUP
729 # include "os0sync.h"717 # include "os0sync.h"
730@@ -2212,13 +2214,18 @@718@@ -2213,13 +2215,18 @@
731 ulint n, /*!< in: number of bytes to read */719 ulint n, /*!< in: number of bytes to read */
732 ulint offset, /*!< in: least significant 32 bits of file720 ulint offset, /*!< in: least significant 32 bits of file
733 offset from where to read */721 offset from where to read */
@@ -747,7 +735,7 @@
747 735
748 ut_a((offset & 0xFFFFFFFFUL) == offset);736 ut_a((offset & 0xFFFFFFFFUL) == offset);
749 737
750@@ -2239,6 +2246,15 @@738@@ -2240,6 +2247,15 @@
751 739
752 os_n_file_reads++;740 os_n_file_reads++;
753 741
@@ -763,7 +751,7 @@
763 #if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)751 #if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)
764 os_mutex_enter(os_file_count_mutex);752 os_mutex_enter(os_file_count_mutex);
765 os_file_n_pending_preads++;753 os_file_n_pending_preads++;
766@@ -2252,6 +2268,13 @@754@@ -2253,6 +2269,13 @@
767 os_n_pending_reads--;755 os_n_pending_reads--;
768 os_mutex_exit(os_file_count_mutex);756 os_mutex_exit(os_file_count_mutex);
769 757
@@ -777,7 +765,7 @@
777 return(n_bytes);765 return(n_bytes);
778 #else766 #else
779 {767 {
780@@ -2288,6 +2311,13 @@768@@ -2289,6 +2312,13 @@
781 os_n_pending_reads--;769 os_n_pending_reads--;
782 os_mutex_exit(os_file_count_mutex);770 os_mutex_exit(os_file_count_mutex);
783 771
@@ -791,7 +779,7 @@
791 return(ret);779 return(ret);
792 }780 }
793 #endif781 #endif
794@@ -2428,7 +2458,8 @@782@@ -2429,7 +2459,8 @@
795 offset where to read */783 offset where to read */
796 ulint offset_high, /*!< in: most significant 32 bits of784 ulint offset_high, /*!< in: most significant 32 bits of
797 offset */785 offset */
@@ -801,7 +789,7 @@
801 {789 {
802 #ifdef __WIN__790 #ifdef __WIN__
803 BOOL ret;791 BOOL ret;
804@@ -2503,7 +2534,7 @@792@@ -2504,7 +2535,7 @@
805 os_bytes_read_since_printout += n;793 os_bytes_read_since_printout += n;
806 794
807 try_again:795 try_again:
@@ -810,7 +798,7 @@
810 798
811 if ((ulint)ret == n) {799 if ((ulint)ret == n) {
812 800
813@@ -2632,7 +2663,7 @@801@@ -2633,7 +2664,7 @@
814 os_bytes_read_since_printout += n;802 os_bytes_read_since_printout += n;
815 803
816 try_again:804 try_again:
@@ -819,7 +807,7 @@
819 807
820 if ((ulint)ret == n) {808 if ((ulint)ret == n) {
821 809
822@@ -4026,10 +4057,11 @@810@@ -4027,10 +4058,11 @@
823 (can be used to identify a completed811 (can be used to identify a completed
824 aio operation); ignored if mode is812 aio operation); ignored if mode is
825 OS_AIO_SYNC */813 OS_AIO_SYNC */
@@ -832,7 +820,7 @@
832 {820 {
833 os_aio_array_t* array;821 os_aio_array_t* array;
834 os_aio_slot_t* slot;822 os_aio_slot_t* slot;
835@@ -4070,8 +4102,8 @@823@@ -4071,8 +4103,8 @@
836 wait in the Windows case. */824 wait in the Windows case. */
837 825
838 if (type == OS_FILE_READ) {826 if (type == OS_FILE_READ) {
@@ -843,7 +831,7 @@
843 }831 }
844 832
845 ut_a(type == OS_FILE_WRITE);833 ut_a(type == OS_FILE_WRITE);
846@@ -4111,6 +4143,11 @@834@@ -4112,6 +4144,11 @@
847 array = NULL; /* Eliminate compiler warning */835 array = NULL; /* Eliminate compiler warning */
848 }836 }
849 837
@@ -855,9 +843,8 @@
855 slot = os_aio_array_reserve_slot(type, array, message1, message2, file,843 slot = os_aio_array_reserve_slot(type, array, message1, message2, file,
856 name, buf, offset, offset_high, n);844 name, buf, offset, offset_high, n);
857 if (type == OS_FILE_READ) {845 if (type == OS_FILE_READ) {
858diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c846--- a/storage/innobase/srv/srv0srv.c
859--- a/storage/innobase/srv/srv0srv.c 2010-12-03 17:32:15.648024399 +0900847+++ b/storage/innobase/srv/srv0srv.c
860+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 17:45:05.067023254 +0900
861@@ -87,6 +87,9 @@848@@ -87,6 +87,9 @@
862 #include "mysql/plugin.h"849 #include "mysql/plugin.h"
863 #include "mysql/service_thd_wait.h"850 #include "mysql/service_thd_wait.h"
@@ -915,9 +902,8 @@
915 os_fast_mutex_lock(&srv_conc_mutex);902 os_fast_mutex_lock(&srv_conc_mutex);
916 903
917 srv_conc_n_waiting_threads--;904 srv_conc_n_waiting_threads--;
918diff -ruN a/storage/innobase/trx/trx0trx.c b/storage/innobase/trx/trx0trx.c905--- a/storage/innobase/trx/trx0trx.c
919--- a/storage/innobase/trx/trx0trx.c 2010-12-03 15:41:52.053955669 +0900906+++ b/storage/innobase/trx/trx0trx.c
920+++ b/storage/innobase/trx/trx0trx.c 2010-12-03 17:42:42.127023410 +0900
921@@ -188,6 +188,15 @@907@@ -188,6 +188,15 @@
922 trx->global_read_view = NULL;908 trx->global_read_view = NULL;
923 trx->read_view = NULL;909 trx->read_view = NULL;
924910
=== modified file 'patches/innodb_extra_rseg.patch'
--- patches/innodb_extra_rseg.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_extra_rseg.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:18:48.879955903 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:22:53.779955671 +0900
11@@ -11528,6 +11528,7 @@10@@ -11528,6 +11528,7 @@
12 innobase_system_variables, /* system variables */11 innobase_system_variables, /* system variables */
13 NULL /* reserved */12 NULL /* reserved */
@@ -16,9 +15,8 @@
16 i_s_innodb_trx,15 i_s_innodb_trx,
17 i_s_innodb_locks,16 i_s_innodb_locks,
18 i_s_innodb_lock_waits,17 i_s_innodb_lock_waits,
19diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc18--- a/storage/innobase/handler/i_s.cc
20--- a/storage/innobase/handler/i_s.cc 2010-12-03 15:06:58.742986460 +090019+++ b/storage/innobase/handler/i_s.cc
21+++ b/storage/innobase/handler/i_s.cc 2010-12-03 15:33:08.790070078 +0900
22@@ -45,6 +45,8 @@20@@ -45,6 +45,8 @@
23 #include "srv0start.h" /* for srv_was_started */21 #include "srv0start.h" /* for srv_was_started */
24 #include "trx0i_s.h"22 #include "trx0i_s.h"
@@ -195,9 +193,8 @@
195+ /* void* */193+ /* void* */
196+ STRUCT_FLD(__reserved1, NULL)194+ STRUCT_FLD(__reserved1, NULL)
197+};195+};
198diff -ruN a/storage/innobase/handler/i_s.h b/storage/innobase/handler/i_s.h196--- a/storage/innobase/handler/i_s.h
199--- a/storage/innobase/handler/i_s.h 2010-12-03 15:06:58.744953398 +0900197+++ b/storage/innobase/handler/i_s.h
200+++ b/storage/innobase/handler/i_s.h 2010-12-03 15:22:53.783953418 +0900
201@@ -35,5 +35,6 @@198@@ -35,5 +35,6 @@
202 extern struct st_mysql_plugin i_s_innodb_cmp_reset;199 extern struct st_mysql_plugin i_s_innodb_cmp_reset;
203 extern struct st_mysql_plugin i_s_innodb_cmpmem;200 extern struct st_mysql_plugin i_s_innodb_cmpmem;
204201
=== modified file 'patches/innodb_fast_checksum.patch'
--- patches/innodb_fast_checksum.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_fast_checksum.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2010-12-04 15:52:23.391514910 +09009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2010-12-04 15:53:45.013513772 +0900
11@@ -511,6 +511,27 @@10@@ -511,6 +511,27 @@
12 return(checksum);11 return(checksum);
13 }12 }
@@ -92,9 +91,8 @@
92 (ulong) mach_read_from_4(read_buf + FIL_PAGE_SPACE_OR_CHKSUM),91 (ulong) mach_read_from_4(read_buf + FIL_PAGE_SPACE_OR_CHKSUM),
93 (ulong) mach_read_from_4(read_buf + UNIV_PAGE_SIZE92 (ulong) mach_read_from_4(read_buf + UNIV_PAGE_SIZE
94 - FIL_PAGE_END_LSN_OLD_CHKSUM),93 - FIL_PAGE_END_LSN_OLD_CHKSUM),
95diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c94--- a/storage/innobase/buf/buf0flu.c
96--- a/storage/innobase/buf/buf0flu.c 2010-12-04 15:37:50.555568346 +090095+++ b/storage/innobase/buf/buf0flu.c
97+++ b/storage/innobase/buf/buf0flu.c 2010-12-04 15:53:45.015513917 +0900
98@@ -1055,7 +1055,9 @@96@@ -1055,7 +1055,9 @@
99 97
100 mach_write_to_4(page + FIL_PAGE_SPACE_OR_CHKSUM,98 mach_write_to_4(page + FIL_PAGE_SPACE_OR_CHKSUM,
@@ -106,9 +104,8 @@
106 : BUF_NO_CHECKSUM_MAGIC);104 : BUF_NO_CHECKSUM_MAGIC);
107 105
108 /* We overwrite the first 4 bytes of the end lsn field to store106 /* We overwrite the first 4 bytes of the end lsn field to store
109diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c107--- a/storage/innobase/fil/fil0fil.c
110--- a/storage/innobase/fil/fil0fil.c 2010-12-04 15:52:23.406513743 +0900108+++ b/storage/innobase/fil/fil0fil.c
111+++ b/storage/innobase/fil/fil0fil.c 2010-12-04 15:53:45.020513800 +0900
112@@ -3094,13 +3094,24 @@109@@ -3094,13 +3094,24 @@
113 return(TRUE);110 return(TRUE);
114 }111 }
@@ -146,9 +143,8 @@
146 : BUF_NO_CHECKSUM_MAGIC);143 : BUF_NO_CHECKSUM_MAGIC);
147 mach_write_to_4(page + UNIV_PAGE_SIZE - FIL_PAGE_END_LSN_OLD_CHKSUM,144 mach_write_to_4(page + UNIV_PAGE_SIZE - FIL_PAGE_END_LSN_OLD_CHKSUM,
148 srv_use_checksums145 srv_use_checksums
149diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc146--- a/storage/innobase/handler/ha_innodb.cc
150--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:52:23.420480329 +0900147+++ b/storage/innobase/handler/ha_innodb.cc
151+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:53:45.029551892 +0900
152@@ -183,6 +183,7 @@148@@ -183,6 +183,7 @@
153 #endif /* UNIV_LOG_ARCHIVE */149 #endif /* UNIV_LOG_ARCHIVE */
154 static my_bool innobase_use_doublewrite = TRUE;150 static my_bool innobase_use_doublewrite = TRUE;
@@ -189,9 +185,8 @@
189 MYSQL_SYSVAR(commit_concurrency),185 MYSQL_SYSVAR(commit_concurrency),
190 MYSQL_SYSVAR(concurrency_tickets),186 MYSQL_SYSVAR(concurrency_tickets),
191 MYSQL_SYSVAR(data_file_path),187 MYSQL_SYSVAR(data_file_path),
192diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h188--- a/storage/innobase/include/buf0buf.h
193--- a/storage/innobase/include/buf0buf.h 2010-12-04 15:52:23.458514045 +0900189+++ b/storage/innobase/include/buf0buf.h
194+++ b/storage/innobase/include/buf0buf.h 2010-12-04 15:53:45.044514150 +0900
195@@ -604,6 +604,11 @@190@@ -604,6 +604,11 @@
196 buf_calc_page_new_checksum(191 buf_calc_page_new_checksum(
197 /*=======================*/192 /*=======================*/
@@ -204,9 +199,8 @@
204 /********************************************************************//**199 /********************************************************************//**
205 In versions < 4.0.14 and < 4.1.1 there was a bug that the checksum only200 In versions < 4.0.14 and < 4.1.1 there was a bug that the checksum only
206 looked at the first few bytes of the page. This calculates that old201 looked at the first few bytes of the page. This calculates that old
207diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h202--- a/storage/innobase/include/fil0fil.h
208--- a/storage/innobase/include/fil0fil.h 2010-12-04 15:52:23.466513796 +0900203+++ b/storage/innobase/include/fil0fil.h
209+++ b/storage/innobase/include/fil0fil.h 2010-12-04 15:53:45.046513558 +0900
210@@ -118,6 +118,7 @@204@@ -118,6 +118,7 @@
211 #define FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID 34 /*!< starting from 4.1.x this205 #define FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID 34 /*!< starting from 4.1.x this
212 contains the space id of the page */206 contains the space id of the page */
@@ -215,9 +209,8 @@
215 /* @} */209 /* @} */
216 /** File page trailer @{ */210 /** File page trailer @{ */
217 #define FIL_PAGE_END_LSN_OLD_CHKSUM 8 /*!< the low 4 bytes of this are used211 #define FIL_PAGE_END_LSN_OLD_CHKSUM 8 /*!< the low 4 bytes of this are used
218diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h212--- a/storage/innobase/include/srv0srv.h
219--- a/storage/innobase/include/srv0srv.h 2010-12-04 15:52:23.474482590 +0900213+++ b/storage/innobase/include/srv0srv.h
220+++ b/storage/innobase/include/srv0srv.h 2010-12-04 15:53:45.048512100 +0900
221@@ -224,6 +224,7 @@214@@ -224,6 +224,7 @@
222 215
223 extern ibool srv_use_doublewrite_buf;216 extern ibool srv_use_doublewrite_buf;
@@ -226,9 +219,8 @@
226 219
227 extern ulong srv_max_buf_pool_modified_pct;220 extern ulong srv_max_buf_pool_modified_pct;
228 extern ulong srv_max_purge_lag;221 extern ulong srv_max_purge_lag;
229diff -ruN a/storage/innobase/include/ut0rnd.h b/storage/innobase/include/ut0rnd.h222--- a/storage/innobase/include/ut0rnd.h
230--- a/storage/innobase/include/ut0rnd.h 2010-11-03 07:01:13.000000000 +0900223+++ b/storage/innobase/include/ut0rnd.h
231+++ b/storage/innobase/include/ut0rnd.h 2010-12-04 15:53:45.049510146 +0900
232@@ -124,6 +124,13 @@224@@ -124,6 +124,13 @@
233 const byte* str, /*!< in: string of bytes */225 const byte* str, /*!< in: string of bytes */
234 ulint len) /*!< in: length */226 ulint len) /*!< in: length */
@@ -243,9 +235,8 @@
243 /***********************************************************//**235 /***********************************************************//**
244 Looks for a prime number slightly greater than the given argument.236 Looks for a prime number slightly greater than the given argument.
245 The prime is chosen so that it is not near any power of 2.237 The prime is chosen so that it is not near any power of 2.
246diff -ruN a/storage/innobase/include/ut0rnd.ic b/storage/innobase/include/ut0rnd.ic238--- a/storage/innobase/include/ut0rnd.ic
247--- a/storage/innobase/include/ut0rnd.ic 2010-11-03 07:01:13.000000000 +0900239+++ b/storage/innobase/include/ut0rnd.ic
248+++ b/storage/innobase/include/ut0rnd.ic 2010-12-04 15:53:45.050565975 +0900
249@@ -226,3 +226,28 @@240@@ -226,3 +226,28 @@
250 241
251 return(fold);242 return(fold);
@@ -275,9 +266,8 @@
275+266+
276+ return(fold);267+ return(fold);
277+}268+}
278diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c269--- a/storage/innobase/srv/srv0srv.c
279--- a/storage/innobase/srv/srv0srv.c 2010-12-04 15:52:23.498513634 +0900270+++ b/storage/innobase/srv/srv0srv.c
280+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 15:53:45.053550283 +0900
281@@ -414,6 +414,7 @@271@@ -414,6 +414,7 @@
282 272
283 UNIV_INTERN ibool srv_use_doublewrite_buf = TRUE;273 UNIV_INTERN ibool srv_use_doublewrite_buf = TRUE;
284274
=== modified file 'patches/innodb_files_extend.patch'
--- patches/innodb_files_extend.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_files_extend.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c8--- a/storage/innobase/fil/fil0fil.c
9--- a/storage/innobase/fil/fil0fil.c 2010-12-04 15:55:21.358513751 +09009+++ b/storage/innobase/fil/fil0fil.c
10+++ b/storage/innobase/fil/fil0fil.c 2010-12-04 15:55:58.243481131 +0900
11@@ -731,7 +731,7 @@10@@ -731,7 +731,7 @@
12 ut_a(space->purpose != FIL_LOG);11 ut_a(space->purpose != FIL_LOG);
13 ut_a(!trx_sys_sys_space(space->id));12 ut_a(!trx_sys_sys_space(space->id));
@@ -48,9 +47,8 @@
48 ut_ad(fil_validate_skip());47 ut_ad(fil_validate_skip());
49 #ifndef UNIV_HOTBACKUP48 #ifndef UNIV_HOTBACKUP
50 # ifndef UNIV_LOG_DEBUG49 # ifndef UNIV_LOG_DEBUG
51diff -ruN a/storage/innobase/fsp/fsp0fsp.c b/storage/innobase/fsp/fsp0fsp.c50--- a/storage/innobase/fsp/fsp0fsp.c
52--- a/storage/innobase/fsp/fsp0fsp.c 2010-12-04 15:52:23.411513754 +090051+++ b/storage/innobase/fsp/fsp0fsp.c
53+++ b/storage/innobase/fsp/fsp0fsp.c 2010-12-04 15:55:58.244514273 +0900
54@@ -656,16 +656,18 @@52@@ -656,16 +656,18 @@
55 0 for uncompressed pages */53 0 for uncompressed pages */
56 ulint offset) /*!< in: page offset */54 ulint offset) /*!< in: page offset */
@@ -99,9 +97,8 @@
99 97
100 if (UNIV_UNLIKELY(init_xdes)) {98 if (UNIV_UNLIKELY(init_xdes)) {
101 99
102diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc100--- a/storage/innobase/handler/ha_innodb.cc
103--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:55:21.367482924 +0900101+++ b/storage/innobase/handler/ha_innodb.cc
104+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:55:58.248549631 +0900
105@@ -148,6 +148,9 @@102@@ -148,6 +148,9 @@
106 static ulong innobase_write_io_threads;103 static ulong innobase_write_io_threads;
107 static long innobase_buffer_pool_instances = 1;104 static long innobase_buffer_pool_instances = 1;
@@ -217,9 +214,8 @@
217 MYSQL_SYSVAR(additional_mem_pool_size),214 MYSQL_SYSVAR(additional_mem_pool_size),
218 MYSQL_SYSVAR(autoextend_increment),215 MYSQL_SYSVAR(autoextend_increment),
219 MYSQL_SYSVAR(buffer_pool_size),216 MYSQL_SYSVAR(buffer_pool_size),
220diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h217--- a/storage/innobase/include/buf0buf.h
221--- a/storage/innobase/include/buf0buf.h 2010-12-04 15:55:21.375482937 +0900218+++ b/storage/innobase/include/buf0buf.h
222+++ b/storage/innobase/include/buf0buf.h 2010-12-04 15:55:58.258469088 +0900
223@@ -1683,7 +1683,7 @@219@@ -1683,7 +1683,7 @@
224 time_t last_printout_time;220 time_t last_printout_time;
225 /*!< when buf_print_io was last time221 /*!< when buf_print_io was last time
@@ -251,9 +247,8 @@
251 #if BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE247 #if BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE
252 # error "BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE"248 # error "BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE"
253 #endif249 #endif
254diff -ruN a/storage/innobase/include/buf0types.h b/storage/innobase/include/buf0types.h250--- a/storage/innobase/include/buf0types.h
255--- a/storage/innobase/include/buf0types.h 2010-11-03 07:01:13.000000000 +0900251+++ b/storage/innobase/include/buf0types.h
256+++ b/storage/innobase/include/buf0types.h 2010-12-04 15:55:58.259482590 +0900
257@@ -72,12 +72,13 @@252@@ -72,12 +72,13 @@
258 buddy system; must be at least253 buddy system; must be at least
259 sizeof(buf_page_t) */254 sizeof(buf_page_t) */
@@ -269,9 +264,8 @@
269 /* @} */264 /* @} */
270 265
271 #endif266 #endif
272diff -ruN a/storage/innobase/include/fsp0types.h b/storage/innobase/include/fsp0types.h267--- a/storage/innobase/include/fsp0types.h
273--- a/storage/innobase/include/fsp0types.h 2010-12-04 02:58:26.000000000 +0900268+++ b/storage/innobase/include/fsp0types.h
274+++ b/storage/innobase/include/fsp0types.h 2011-02-03 15:14:21.000000000 +0900
275@@ -42,7 +42,7 @@269@@ -42,7 +42,7 @@
276 /* @} */270 /* @} */
277 271
@@ -281,9 +275,8 @@
281 275
282 /** On a page of any file segment, data may be put starting from this276 /** On a page of any file segment, data may be put starting from this
283 offset */277 offset */
284diff -ruN a/storage/innobase/include/log0log.h b/storage/innobase/include/log0log.h278--- a/storage/innobase/include/log0log.h
285--- a/storage/innobase/include/log0log.h 2010-11-03 07:01:13.000000000 +0900279+++ b/storage/innobase/include/log0log.h
286+++ b/storage/innobase/include/log0log.h 2010-12-09 18:16:47.737728305 +0900
287@@ -672,6 +672,9 @@280@@ -672,6 +672,9 @@
288 when mysqld is first time started281 when mysqld is first time started
289 on the restored database, it can282 on the restored database, it can
@@ -294,9 +287,8 @@
294 #define LOG_FILE_ARCH_COMPLETED OS_FILE_LOG_BLOCK_SIZE287 #define LOG_FILE_ARCH_COMPLETED OS_FILE_LOG_BLOCK_SIZE
295 /* this 4-byte field is TRUE when288 /* this 4-byte field is TRUE when
296 the writing of an archived log file289 the writing of an archived log file
297diff -ruN a/storage/innobase/include/mtr0log.ic b/storage/innobase/include/mtr0log.ic290--- a/storage/innobase/include/mtr0log.ic
298--- a/storage/innobase/include/mtr0log.ic 2010-12-04 15:37:50.590551517 +0900291+++ b/storage/innobase/include/mtr0log.ic
299+++ b/storage/innobase/include/mtr0log.ic 2010-12-04 15:55:58.260482404 +0900
300@@ -203,7 +203,7 @@292@@ -203,7 +203,7 @@
301 system tablespace */293 system tablespace */
302 if ((space == TRX_SYS_SPACE294 if ((space == TRX_SYS_SPACE
@@ -306,9 +298,8 @@
306 if (trx_doublewrite_buf_is_being_created) {298 if (trx_doublewrite_buf_is_being_created) {
307 /* Do nothing: we only come to this branch in an299 /* Do nothing: we only come to this branch in an
308 InnoDB database creation. We do not redo log300 InnoDB database creation. We do not redo log
309diff -ruN a/storage/innobase/include/os0file.h b/storage/innobase/include/os0file.h301--- a/storage/innobase/include/os0file.h
310--- a/storage/innobase/include/os0file.h 2010-12-09 18:16:02.323727427 +0900302+++ b/storage/innobase/include/os0file.h
311+++ b/storage/innobase/include/os0file.h 2010-12-09 18:16:47.738694194 +0900
312@@ -101,7 +101,7 @@303@@ -101,7 +101,7 @@
313 if this fails for a log block, then it is equivalent to a media failure in the304 if this fails for a log block, then it is equivalent to a media failure in the
314 log. */305 log. */
@@ -327,9 +318,8 @@
327 #ifdef UNIV_PFS_IO318 #ifdef UNIV_PFS_IO
328 /* Keys to register InnoDB I/O with performance schema */319 /* Keys to register InnoDB I/O with performance schema */
329 extern mysql_pfs_key_t innodb_file_data_key;320 extern mysql_pfs_key_t innodb_file_data_key;
330diff -ruN a/storage/innobase/include/page0types.h b/storage/innobase/include/page0types.h321--- a/storage/innobase/include/page0types.h
331--- a/storage/innobase/include/page0types.h 2010-11-03 07:01:13.000000000 +0900322+++ b/storage/innobase/include/page0types.h
332+++ b/storage/innobase/include/page0types.h 2010-12-04 15:55:58.261483930 +0900
333@@ -56,8 +56,9 @@323@@ -56,8 +56,9 @@
334 324
335 /** Number of supported compressed page sizes */325 /** Number of supported compressed page sizes */
@@ -351,9 +341,8 @@
351 341
352 /**********************************************************************//**342 /**********************************************************************//**
353 Write the "deleted" flag of a record on a compressed page. The flag must343 Write the "deleted" flag of a record on a compressed page. The flag must
354diff -ruN a/storage/innobase/include/trx0sys.h b/storage/innobase/include/trx0sys.h344--- a/storage/innobase/include/trx0sys.h
355--- a/storage/innobase/include/trx0sys.h 2010-12-04 15:37:50.593480594 +0900345+++ b/storage/innobase/include/trx0sys.h
356+++ b/storage/innobase/include/trx0sys.h 2010-12-04 15:55:58.262549554 +0900
357@@ -515,9 +515,9 @@346@@ -515,9 +515,9 @@
358 /** Contents of TRX_SYS_MYSQL_LOG_MAGIC_N_FLD */347 /** Contents of TRX_SYS_MYSQL_LOG_MAGIC_N_FLD */
359 #define TRX_SYS_MYSQL_LOG_MAGIC_N 873422344348 #define TRX_SYS_MYSQL_LOG_MAGIC_N 873422344
@@ -367,9 +356,8 @@
367 /** The offset of the MySQL replication info in the trx system header;356 /** The offset of the MySQL replication info in the trx system header;
368 this contains the same fields as TRX_SYS_MYSQL_LOG_INFO below */357 this contains the same fields as TRX_SYS_MYSQL_LOG_INFO below */
369 #define TRX_SYS_MYSQL_MASTER_LOG_INFO (UNIV_PAGE_SIZE - 2000)358 #define TRX_SYS_MYSQL_MASTER_LOG_INFO (UNIV_PAGE_SIZE - 2000)
370diff -ruN a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i359--- a/storage/innobase/include/univ.i
371--- a/storage/innobase/include/univ.i 2010-11-03 07:01:13.000000000 +0900360+++ b/storage/innobase/include/univ.i
372+++ b/storage/innobase/include/univ.i 2010-12-04 15:55:58.263549721 +0900
373@@ -311,9 +311,13 @@361@@ -311,9 +311,13 @@
374 */362 */
375 363
@@ -402,9 +390,8 @@
402+extern ulint srv_page_size_shift;390+extern ulint srv_page_size_shift;
403+extern ulint srv_page_size;391+extern ulint srv_page_size;
404 #endif392 #endif
405diff -ruN a/storage/innobase/log/log0log.c b/storage/innobase/log/log0log.c393--- a/storage/innobase/log/log0log.c
406--- a/storage/innobase/log/log0log.c 2010-12-03 15:18:48.899986203 +0900394+++ b/storage/innobase/log/log0log.c
407+++ b/storage/innobase/log/log0log.c 2010-12-04 15:55:58.266551567 +0900
408@@ -604,7 +604,9 @@395@@ -604,7 +604,9 @@
409 396
410 offset = (gr_lsn_size_offset + difference) % group_size;397 offset = (gr_lsn_size_offset + difference) % group_size;
@@ -455,9 +442,8 @@
455 #endif /* UNIV_LOG_ARCHIVE */442 #endif /* UNIV_LOG_ARCHIVE */
456 443
457 for (i = 0; i < LOG_MAX_N_GROUPS; i++) {444 for (i = 0; i < LOG_MAX_N_GROUPS; i++) {
458diff -ruN a/storage/innobase/log/log0recv.c b/storage/innobase/log/log0recv.c445--- a/storage/innobase/log/log0recv.c
459--- a/storage/innobase/log/log0recv.c 2010-12-03 17:32:15.638986405 +0900446+++ b/storage/innobase/log/log0recv.c
460+++ b/storage/innobase/log/log0recv.c 2010-12-04 15:55:58.269550689 +0900
461@@ -712,8 +712,22 @@447@@ -712,8 +712,22 @@
462 448
463 group->lsn = mach_read_from_8(449 group->lsn = mach_read_from_8(
@@ -511,9 +497,8 @@
511 #ifdef UNIV_LOG_ARCHIVE497 #ifdef UNIV_LOG_ARCHIVE
512 group = UT_LIST_GET_FIRST(log_sys->log_groups);498 group = UT_LIST_GET_FIRST(log_sys->log_groups);
513 499
514diff -ruN a/storage/innobase/page/page0zip.c b/storage/innobase/page/page0zip.c500--- a/storage/innobase/page/page0zip.c
515--- a/storage/innobase/page/page0zip.c 2010-12-04 15:52:23.484482786 +0900501+++ b/storage/innobase/page/page0zip.c
516+++ b/storage/innobase/page/page0zip.c 2010-12-04 15:55:58.274551431 +0900
517@@ -49,7 +49,7 @@502@@ -49,7 +49,7 @@
518 503
519 #ifndef UNIV_HOTBACKUP504 #ifndef UNIV_HOTBACKUP
@@ -523,9 +508,8 @@
523 #endif /* !UNIV_HOTBACKUP */508 #endif /* !UNIV_HOTBACKUP */
524 509
525 /* Please refer to ../include/page0zip.ic for a description of the510 /* Please refer to ../include/page0zip.ic for a description of the
526diff -ruN a/storage/innobase/row/row0merge.c b/storage/innobase/row/row0merge.c511--- a/storage/innobase/row/row0merge.c
527--- a/storage/innobase/row/row0merge.c 2010-12-04 15:52:23.490513562 +0900512+++ b/storage/innobase/row/row0merge.c
528+++ b/storage/innobase/row/row0merge.c 2010-12-04 15:55:58.277550562 +0900
529@@ -97,7 +97,7 @@513@@ -97,7 +97,7 @@
530 row_merge_block_t. Thus, it must be able to hold one merge record,514 row_merge_block_t. Thus, it must be able to hold one merge record,
531 whose maximum size is the same as the minimum size of515 whose maximum size is the same as the minimum size of
@@ -535,9 +519,8 @@
535 519
536 /** @brief Merge record in row_merge_block_t.520 /** @brief Merge record in row_merge_block_t.
537 521
538diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c522--- a/storage/innobase/srv/srv0srv.c
539--- a/storage/innobase/srv/srv0srv.c 2010-12-04 15:55:21.384486344 +0900523+++ b/storage/innobase/srv/srv0srv.c
540+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 15:55:58.282550845 +0900
541@@ -234,6 +234,13 @@524@@ -234,6 +234,13 @@
542 UNIV_INTERN ulint srv_n_read_io_threads = ULINT_MAX;525 UNIV_INTERN ulint srv_n_read_io_threads = ULINT_MAX;
543 UNIV_INTERN ulint srv_n_write_io_threads = ULINT_MAX;526 UNIV_INTERN ulint srv_n_write_io_threads = ULINT_MAX;
@@ -552,9 +535,8 @@
552 /* User settable value of the number of pages that must be present535 /* User settable value of the number of pages that must be present
553 in the buffer cache and accessed sequentially for InnoDB to trigger a536 in the buffer cache and accessed sequentially for InnoDB to trigger a
554 readahead request. */537 readahead request. */
555diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c538--- a/storage/innobase/srv/srv0start.c
556--- a/storage/innobase/srv/srv0start.c 2010-12-04 15:52:23.502513556 +0900539+++ b/storage/innobase/srv/srv0start.c
557+++ b/storage/innobase/srv/srv0start.c 2010-12-04 15:55:58.285550583 +0900
558@@ -1561,11 +1561,13 @@540@@ -1561,11 +1561,13 @@
559 }541 }
560 #endif /* UNIV_LOG_ARCHIVE */542 #endif /* UNIV_LOG_ARCHIVE */
561543
=== modified file 'patches/innodb_fix_misc.patch'
--- patches/innodb_fix_misc.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_fix_misc.patch 2011-07-27 11:32:35 +0000
@@ -10,9 +10,8 @@
10#!!! notice !!!10#!!! notice !!!
11# Any small change to this file in the main branch11# Any small change to this file in the main branch
12# should be done or reviewed by the maintainer!12# should be done or reviewed by the maintainer!
13diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c13--- a/storage/innobase/buf/buf0buf.c
14--- a/storage/innobase/buf/buf0buf.c 2011-02-23 19:00:48.178696354 +090014+++ b/storage/innobase/buf/buf0buf.c
15+++ b/storage/innobase/buf/buf0buf.c 2011-02-23 19:01:19.138826278 +0900
16@@ -4084,6 +4084,7 @@15@@ -4084,6 +4084,7 @@
17 bpage->state = BUF_BLOCK_ZIP_PAGE;16 bpage->state = BUF_BLOCK_ZIP_PAGE;
18 bpage->space = space;17 bpage->space = space;
@@ -21,9 +20,8 @@
21 20
22 21
23 #ifdef UNIV_DEBUG22 #ifdef UNIV_DEBUG
24diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c23--- a/storage/innobase/buf/buf0flu.c
25--- a/storage/innobase/buf/buf0flu.c 2011-02-23 19:00:48.182659256 +090024+++ b/storage/innobase/buf/buf0flu.c
26+++ b/storage/innobase/buf/buf0flu.c 2011-02-23 19:01:19.138826278 +0900
27@@ -439,7 +439,7 @@25@@ -439,7 +439,7 @@
28 26
29 if (UNIV_LIKELY(bpage->in_LRU_list && buf_page_in_file(bpage))) {27 if (UNIV_LIKELY(bpage->in_LRU_list && buf_page_in_file(bpage))) {
@@ -47,9 +45,8 @@
47 if (flush_type != BUF_FLUSH_LRU) {45 if (flush_type != BUF_FLUSH_LRU) {
48 46
49 return(TRUE);47 return(TRUE);
50diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c48--- a/storage/innobase/buf/buf0lru.c
51--- a/storage/innobase/buf/buf0lru.c 2011-02-23 19:00:47.939695791 +090049+++ b/storage/innobase/buf/buf0lru.c
52+++ b/storage/innobase/buf/buf0lru.c 2011-02-23 19:01:19.142741970 +0900
53@@ -574,6 +574,37 @@50@@ -574,6 +574,37 @@
54 }51 }
55 }52 }
@@ -99,9 +96,8 @@
99 #ifdef UNIV_IBUF_COUNT_DEBUG96 #ifdef UNIV_IBUF_COUNT_DEBUG
100 ut_a(ibuf_count_get(bpage->space, bpage->offset) == 0);97 ut_a(ibuf_count_get(bpage->space, bpage->offset) == 0);
101 #endif /* UNIV_IBUF_COUNT_DEBUG */98 #endif /* UNIV_IBUF_COUNT_DEBUG */
102diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c99--- a/storage/innobase/fil/fil0fil.c
103--- a/storage/innobase/fil/fil0fil.c 2011-02-23 19:00:48.223696428 +0900100+++ b/storage/innobase/fil/fil0fil.c
104+++ b/storage/innobase/fil/fil0fil.c 2011-02-23 19:01:19.147655510 +0900
105@@ -254,6 +254,7 @@101@@ -254,6 +254,7 @@
106 struct fil_system_struct {102 struct fil_system_struct {
107 #ifndef UNIV_HOTBACKUP103 #ifndef UNIV_HOTBACKUP
@@ -300,9 +296,8 @@
300 }296 }
301 297
302 ut_a(ret);298 ut_a(ret);
303diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc299--- a/storage/innobase/handler/ha_innodb.cc
304--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:57:13.035513990 +0900300+++ b/storage/innobase/handler/ha_innodb.cc
305+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:57:53.084513775 +0900
306@@ -12007,6 +12007,12 @@301@@ -12007,6 +12007,12 @@
307 "except for the deletion.",302 "except for the deletion.",
308 NULL, NULL, 0, &corrupt_table_action_typelib);303 NULL, NULL, 0, &corrupt_table_action_typelib);
@@ -333,9 +328,8 @@
333 PLUGIN_LICENSE_GPL,328 PLUGIN_LICENSE_GPL,
334 innobase_init, /* Plugin Init */329 innobase_init, /* Plugin Init */
335 NULL, /* Plugin Deinit */330 NULL, /* Plugin Deinit */
336diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h331--- a/storage/innobase/include/buf0buf.h
337--- a/storage/innobase/include/buf0buf.h 2011-02-23 19:00:48.252696774 +0900332+++ b/storage/innobase/include/buf0buf.h
338+++ b/storage/innobase/include/buf0buf.h 2011-02-23 19:01:19.182655902 +0900
339@@ -1438,6 +1438,7 @@333@@ -1438,6 +1438,7 @@
340 0 if the block was never accessed334 0 if the block was never accessed
341 in the buffer pool */335 in the buffer pool */
@@ -344,9 +338,8 @@
344 ibool is_corrupt;338 ibool is_corrupt;
345 # if defined UNIV_DEBUG_FILE_ACCESSES || defined UNIV_DEBUG339 # if defined UNIV_DEBUG_FILE_ACCESSES || defined UNIV_DEBUG
346 ibool file_page_was_freed;340 ibool file_page_was_freed;
347diff -ruN a/storage/innobase/include/buf0buf.ic b/storage/innobase/include/buf0buf.ic341--- a/storage/innobase/include/buf0buf.ic
348--- a/storage/innobase/include/buf0buf.ic 2011-02-23 19:00:48.130659154 +0900342+++ b/storage/innobase/include/buf0buf.ic
349+++ b/storage/innobase/include/buf0buf.ic 2011-02-23 19:01:19.185655906 +0900
350@@ -408,6 +408,7 @@343@@ -408,6 +408,7 @@
351 buf_block_set_state(block, BUF_BLOCK_FILE_PAGE);344 buf_block_set_state(block, BUF_BLOCK_FILE_PAGE);
352 block->page.space = space;345 block->page.space = space;
@@ -355,9 +348,8 @@
355 }348 }
356 349
357 /*********************************************************************//**350 /*********************************************************************//**
358diff -ruN a/storage/innobase/include/buf0lru.h b/storage/innobase/include/buf0lru.h351--- a/storage/innobase/include/buf0lru.h
359--- a/storage/innobase/include/buf0lru.h 2011-02-23 19:00:47.977658923 +0900352+++ b/storage/innobase/include/buf0lru.h
360+++ b/storage/innobase/include/buf0lru.h 2011-02-23 19:01:19.188625768 +0900
361@@ -85,6 +85,13 @@353@@ -85,6 +85,13 @@
362 buf_LRU_invalidate_tablespace(354 buf_LRU_invalidate_tablespace(
363 /*==========================*/355 /*==========================*/
@@ -372,9 +364,8 @@
372 /********************************************************************//**364 /********************************************************************//**
373 Insert a compressed block into buf_pool->zip_clean in the LRU order. */365 Insert a compressed block into buf_pool->zip_clean in the LRU order. */
374 UNIV_INTERN366 UNIV_INTERN
375diff -ruN a/storage/innobase/include/os0file.h b/storage/innobase/include/os0file.h367--- a/storage/innobase/include/os0file.h
376--- a/storage/innobase/include/os0file.h 2011-02-23 19:00:48.260696646 +0900368+++ b/storage/innobase/include/os0file.h
377+++ b/storage/innobase/include/os0file.h 2011-02-23 19:01:19.190656054 +0900
378@@ -280,9 +280,9 @@369@@ -280,9 +280,9 @@
379 pfs_os_file_close_func(file, __FILE__, __LINE__)370 pfs_os_file_close_func(file, __FILE__, __LINE__)
380 371
@@ -445,9 +436,8 @@
445 #endif /* LINUX_NATIVE_AIO */436 #endif /* LINUX_NATIVE_AIO */
446 437
447 #ifndef UNIV_NONINL438 #ifndef UNIV_NONINL
448diff -ruN a/storage/innobase/include/os0file.ic b/storage/innobase/include/os0file.ic439--- a/storage/innobase/include/os0file.ic
449--- a/storage/innobase/include/os0file.ic 2011-02-23 19:00:47.915696756 +0900440+++ b/storage/innobase/include/os0file.ic
450+++ b/storage/innobase/include/os0file.ic 2011-02-23 19:01:19.191625891 +0900
451@@ -229,6 +229,7 @@441@@ -229,6 +229,7 @@
452 (can be used to identify a completed442 (can be used to identify a completed
453 aio operation); ignored if mode is443 aio operation); ignored if mode is
@@ -465,9 +455,8 @@
465 455
466 register_pfs_file_io_end(locker, n);456 register_pfs_file_io_end(locker, n);
467 457
468diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h458--- a/storage/innobase/include/srv0srv.h
469--- a/storage/innobase/include/srv0srv.h 2011-02-23 19:00:48.212625715 +0900459+++ b/storage/innobase/include/srv0srv.h
470+++ b/storage/innobase/include/srv0srv.h 2011-02-23 19:01:19.193655990 +0900
471@@ -244,6 +244,8 @@460@@ -244,6 +244,8 @@
472 extern ulint srv_pass_corrupt_table;461 extern ulint srv_pass_corrupt_table;
473 462
@@ -477,9 +466,8 @@
477 /*-------------------------------------------*/466 /*-------------------------------------------*/
478 467
479 extern ulint srv_n_rows_inserted;468 extern ulint srv_n_rows_inserted;
480diff -ruN a/storage/innobase/include/sync0sync.h b/storage/innobase/include/sync0sync.h469--- a/storage/innobase/include/sync0sync.h
481--- a/storage/innobase/include/sync0sync.h 2011-02-23 19:00:47.875625940 +0900470+++ b/storage/innobase/include/sync0sync.h
482+++ b/storage/innobase/include/sync0sync.h 2011-02-23 19:01:19.195703856 +0900
483@@ -691,6 +691,7 @@471@@ -691,6 +691,7 @@
484 #define SYNC_BUF_POOL 150 /* Buffer pool mutex */472 #define SYNC_BUF_POOL 150 /* Buffer pool mutex */
485 #define SYNC_BUF_FLUSH_LIST 145 /* Buffer flush list mutex */473 #define SYNC_BUF_FLUSH_LIST 145 /* Buffer flush list mutex */
@@ -488,9 +476,8 @@
488 #define SYNC_ANY_LATCH 135476 #define SYNC_ANY_LATCH 135
489 #define SYNC_THR_LOCAL 133477 #define SYNC_THR_LOCAL 133
490 #define SYNC_MEM_HASH 131478 #define SYNC_MEM_HASH 131
491diff -ruN a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i479--- a/storage/innobase/include/univ.i
492--- a/storage/innobase/include/univ.i 2010-12-04 15:57:13.050485224 +0900480+++ b/storage/innobase/include/univ.i
493+++ b/storage/innobase/include/univ.i 2010-12-04 15:57:53.091592933 +0900
494@@ -53,6 +53,11 @@481@@ -53,6 +53,11 @@
495 #define INNODB_VERSION_MINOR 1482 #define INNODB_VERSION_MINOR 1
496 #define INNODB_VERSION_BUGFIX 7483 #define INNODB_VERSION_BUGFIX 7
@@ -513,9 +500,8 @@
513 500
514 #define REFMAN "http://dev.mysql.com/doc/refman/" \501 #define REFMAN "http://dev.mysql.com/doc/refman/" \
515 IB_TO_STR(MYSQL_MAJOR_VERSION) "." \502 IB_TO_STR(MYSQL_MAJOR_VERSION) "." \
516diff -ruN a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c503--- a/storage/innobase/os/os0file.c
517--- a/storage/innobase/os/os0file.c 2011-02-23 19:00:47.928696481 +0900504+++ b/storage/innobase/os/os0file.c
518+++ b/storage/innobase/os/os0file.c 2011-02-23 19:01:19.200696353 +0900
519@@ -180,6 +180,7 @@505@@ -180,6 +180,7 @@
520 made and only the slot message506 made and only the slot message
521 needs to be passed to the caller507 needs to be passed to the caller
@@ -524,7 +510,7 @@
524 fil_node_t* message1; /*!< message which is given by the */510 fil_node_t* message1; /*!< message which is given by the */
525 void* message2; /*!< the requester of an aio operation511 void* message2; /*!< the requester of an aio operation
526 and which can be used to identify512 and which can be used to identify
527@@ -3685,7 +3686,8 @@513@@ -3686,7 +3687,8 @@
528 offset */514 offset */
529 ulint offset_high, /*!< in: most significant 32 bits of515 ulint offset_high, /*!< in: most significant 32 bits of
530 offset */516 offset */
@@ -534,7 +520,7 @@
534 {520 {
535 os_aio_slot_t* slot = NULL;521 os_aio_slot_t* slot = NULL;
536 #ifdef WIN_ASYNC_IO522 #ifdef WIN_ASYNC_IO
537@@ -3774,6 +3776,7 @@523@@ -3775,6 +3777,7 @@
538 slot->offset = offset;524 slot->offset = offset;
539 slot->offset_high = offset_high;525 slot->offset_high = offset_high;
540 slot->io_already_done = FALSE;526 slot->io_already_done = FALSE;
@@ -542,7 +528,7 @@
542 528
543 #ifdef WIN_ASYNC_IO529 #ifdef WIN_ASYNC_IO
544 control = &(slot->control);530 control = &(slot->control);
545@@ -4061,6 +4064,7 @@531@@ -4062,6 +4065,7 @@
546 (can be used to identify a completed532 (can be used to identify a completed
547 aio operation); ignored if mode is533 aio operation); ignored if mode is
548 OS_AIO_SYNC */534 OS_AIO_SYNC */
@@ -550,7 +536,7 @@
550 trx_t* trx)536 trx_t* trx)
551 {537 {
552 os_aio_array_t* array;538 os_aio_array_t* array;
553@@ -4149,7 +4153,7 @@539@@ -4150,7 +4154,7 @@
554 trx->io_read += n;540 trx->io_read += n;
555 }541 }
556 slot = os_aio_array_reserve_slot(type, array, message1, message2, file,542 slot = os_aio_array_reserve_slot(type, array, message1, message2, file,
@@ -559,7 +545,7 @@
559 if (type == OS_FILE_READ) {545 if (type == OS_FILE_READ) {
560 if (srv_use_native_aio) {546 if (srv_use_native_aio) {
561 os_n_file_reads++;547 os_n_file_reads++;
562@@ -4268,7 +4272,8 @@548@@ -4269,7 +4273,8 @@
563 parameters are valid and can be used to549 parameters are valid and can be used to
564 restart the operation, for example */550 restart the operation, for example */
565 void** message2,551 void** message2,
@@ -569,7 +555,7 @@
569 {555 {
570 ulint orig_seg = segment;556 ulint orig_seg = segment;
571 os_aio_array_t* array;557 os_aio_array_t* array;
572@@ -4347,6 +4352,7 @@558@@ -4348,6 +4353,7 @@
573 *message2 = slot->message2;559 *message2 = slot->message2;
574 560
575 *type = slot->type;561 *type = slot->type;
@@ -577,7 +563,7 @@
577 563
578 if (ret && len == slot->len) {564 if (ret && len == slot->len) {
579 ret_val = TRUE;565 ret_val = TRUE;
580@@ -4575,7 +4581,8 @@566@@ -4576,7 +4582,8 @@
581 aio operation failed, these output567 aio operation failed, these output
582 parameters are valid and can be used to568 parameters are valid and can be used to
583 restart the operation. */569 restart the operation. */
@@ -587,7 +573,7 @@
587 {573 {
588 ulint segment;574 ulint segment;
589 os_aio_array_t* array;575 os_aio_array_t* array;
590@@ -4648,6 +4655,7 @@576@@ -4649,6 +4656,7 @@
591 *message2 = slot->message2;577 *message2 = slot->message2;
592 578
593 *type = slot->type;579 *type = slot->type;
@@ -595,7 +581,7 @@
595 581
596 if ((slot->ret == 0) && (slot->n_bytes == (long)slot->len)) {582 if ((slot->ret == 0) && (slot->n_bytes == (long)slot->len)) {
597 ret = TRUE;583 ret = TRUE;
598@@ -4701,7 +4709,8 @@584@@ -4702,7 +4710,8 @@
599 parameters are valid and can be used to585 parameters are valid and can be used to
600 restart the operation, for example */586 restart the operation, for example */
601 void** message2,587 void** message2,
@@ -605,7 +591,7 @@
605 {591 {
606 os_aio_array_t* array;592 os_aio_array_t* array;
607 ulint segment;593 ulint segment;
608@@ -4997,6 +5006,7 @@594@@ -4998,6 +5007,7 @@
609 *message2 = slot->message2;595 *message2 = slot->message2;
610 596
611 *type = slot->type;597 *type = slot->type;
@@ -613,9 +599,8 @@
613 599
614 os_mutex_exit(array->mutex);600 os_mutex_exit(array->mutex);
615 601
616diff -ruN a/storage/innobase/row/row0mysql.c b/storage/innobase/row/row0mysql.c602--- a/storage/innobase/row/row0mysql.c
617--- a/storage/innobase/row/row0mysql.c 2010-12-04 15:37:50.598481116 +0900603+++ b/storage/innobase/row/row0mysql.c
618+++ b/storage/innobase/row/row0mysql.c 2010-12-04 15:57:53.092563335 +0900
619@@ -51,6 +51,7 @@604@@ -51,6 +51,7 @@
620 #include "btr0sea.h"605 #include "btr0sea.h"
621 #include "fil0fil.h"606 #include "fil0fil.h"
@@ -638,9 +623,8 @@
638 if (prebuilt->sql_stat_start) {623 if (prebuilt->sql_stat_start) {
639 node->state = INS_NODE_SET_IX_LOCK;624 node->state = INS_NODE_SET_IX_LOCK;
640 prebuilt->sql_stat_start = FALSE;625 prebuilt->sql_stat_start = FALSE;
641diff -ruN a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c626--- a/storage/innobase/row/row0sel.c
642--- a/storage/innobase/row/row0sel.c 2010-12-04 15:52:23.494514495 +0900627+++ b/storage/innobase/row/row0sel.c
643+++ b/storage/innobase/row/row0sel.c 2010-12-04 16:01:38.320883699 +0900
644@@ -3366,6 +3366,7 @@628@@ -3366,6 +3366,7 @@
645 ulint offsets_[REC_OFFS_NORMAL_SIZE];629 ulint offsets_[REC_OFFS_NORMAL_SIZE];
646 ulint* offsets = offsets_;630 ulint* offsets = offsets_;
@@ -686,9 +670,8 @@
686 trx_print(stderr, trx, 600);670 trx_print(stderr, trx, 600);
687 fputc('\n', stderr);671 fputc('\n', stderr);
688 ut_error;672 ut_error;
689diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c673--- a/storage/innobase/srv/srv0srv.c
690--- a/storage/innobase/srv/srv0srv.c 2011-02-23 19:00:48.283695497 +0900674+++ b/storage/innobase/srv/srv0srv.c
691+++ b/storage/innobase/srv/srv0srv.c 2011-02-23 19:01:19.204696643 +0900
692@@ -441,6 +441,8 @@675@@ -441,6 +441,8 @@
693 UNIV_INTERN ulint srv_pass_corrupt_table = 0; /* 0:disable 1:enable */676 UNIV_INTERN ulint srv_pass_corrupt_table = 0; /* 0:disable 1:enable */
694 677
@@ -698,9 +681,8 @@
698 /*-------------------------------------------*/681 /*-------------------------------------------*/
699 UNIV_INTERN ulong srv_n_spin_wait_rounds = 30;682 UNIV_INTERN ulong srv_n_spin_wait_rounds = 30;
700 UNIV_INTERN ulong srv_n_free_tickets_to_enter = 500;683 UNIV_INTERN ulong srv_n_free_tickets_to_enter = 500;
701diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c684--- a/storage/innobase/srv/srv0start.c
702--- a/storage/innobase/srv/srv0start.c 2010-12-04 15:57:13.073495392 +0900685+++ b/storage/innobase/srv/srv0start.c
703+++ b/storage/innobase/srv/srv0start.c 2010-12-04 16:02:50.704884053 +0900
704@@ -2161,7 +2161,7 @@686@@ -2161,7 +2161,7 @@
705 if (srv_print_verbose_log) {687 if (srv_print_verbose_log) {
706 ut_print_timestamp(stderr);688 ut_print_timestamp(stderr);
@@ -710,9 +692,8 @@
710 "log sequence number %llu\n",692 "log sequence number %llu\n",
711 INNODB_VERSION_STR, srv_start_lsn);693 INNODB_VERSION_STR, srv_start_lsn);
712 }694 }
713diff -ruN a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c695--- a/storage/innobase/sync/sync0sync.c
714--- a/storage/innobase/sync/sync0sync.c 2011-02-25 14:18:55.817202060 +0900696+++ b/storage/innobase/sync/sync0sync.c
715+++ b/storage/innobase/sync/sync0sync.c 2011-02-25 14:19:44.596202017 +0900
716@@ -1220,6 +1220,7 @@697@@ -1220,6 +1220,7 @@
717 case SYNC_LOG_FLUSH_ORDER:698 case SYNC_LOG_FLUSH_ORDER:
718 case SYNC_THR_LOCAL:699 case SYNC_THR_LOCAL:
@@ -721,9 +702,8 @@
721 case SYNC_FILE_FORMAT_TAG:702 case SYNC_FILE_FORMAT_TAG:
722 case SYNC_DOUBLEWRITE:703 case SYNC_DOUBLEWRITE:
723 case SYNC_SEARCH_SYS:704 case SYNC_SEARCH_SYS:
724diff -ruN a/storage/innobase/trx/trx0purge.c b/storage/innobase/trx/trx0purge.c705--- a/storage/innobase/trx/trx0purge.c
725--- a/storage/innobase/trx/trx0purge.c 2010-11-03 07:01:13.000000000 +0900706+++ b/storage/innobase/trx/trx0purge.c
726+++ b/storage/innobase/trx/trx0purge.c 2010-12-04 15:57:53.106551154 +0900
727@@ -1149,8 +1149,7 @@707@@ -1149,8 +1149,7 @@
728 /* If we cannot advance the 'purge view' because of an old708 /* If we cannot advance the 'purge view' because of an old
729 'consistent read view', then the DML statements cannot be delayed.709 'consistent read view', then the DML statements cannot be delayed.
730710
=== modified file 'patches/innodb_io_patches.patch'
--- patches/innodb_io_patches.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_io_patches.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2011-07-07 18:43:12.000000000 +04009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2011-07-07 19:01:24.000000000 +0400
11@@ -320,6 +320,7 @@10@@ -320,6 +320,7 @@
12 11
13 /* When we traverse all the flush lists we don't want another12 /* When we traverse all the flush lists we don't want another
@@ -24,9 +23,8 @@
24 log_flush_order_mutex_exit();23 log_flush_order_mutex_exit();
25 24
26 /* The returned answer may be out of date: the flush_list can25 /* The returned answer may be out of date: the flush_list can
27diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c26--- a/storage/innobase/buf/buf0flu.c
28--- a/storage/innobase/buf/buf0flu.c 2011-07-07 18:43:12.000000000 +040027+++ b/storage/innobase/buf/buf0flu.c
29+++ b/storage/innobase/buf/buf0flu.c 2011-07-07 19:01:24.000000000 +0400
30@@ -855,7 +855,7 @@28@@ -855,7 +855,7 @@
31 flush:29 flush:
32 /* Now flush the doublewrite buffer data to disk */30 /* Now flush the doublewrite buffer data to disk */
@@ -45,9 +43,8 @@
45 /* If there is little space, it is better not to flush43 /* If there is little space, it is better not to flush
46 any block except from the end of the LRU list */44 any block except from the end of the LRU list */
47 45
48diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c46--- a/storage/innobase/buf/buf0rea.c
49--- a/storage/innobase/buf/buf0rea.c 2011-05-11 15:54:12.000000000 +040047+++ b/storage/innobase/buf/buf0rea.c
50+++ b/storage/innobase/buf/buf0rea.c 2011-07-07 19:01:24.000000000 +0400
51@@ -260,6 +260,10 @@48@@ -260,6 +260,10 @@
52 = BUF_READ_AHEAD_LINEAR_AREA(buf_pool);49 = BUF_READ_AHEAD_LINEAR_AREA(buf_pool);
53 ulint threshold;50 ulint threshold;
@@ -59,9 +56,8 @@
59 if (UNIV_UNLIKELY(srv_startup_is_before_trx_rollback_phase)) {56 if (UNIV_UNLIKELY(srv_startup_is_before_trx_rollback_phase)) {
60 /* No read-ahead to avoid thread deadlocks */57 /* No read-ahead to avoid thread deadlocks */
61 return(0);58 return(0);
62diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c59--- a/storage/innobase/fil/fil0fil.c
63--- a/storage/innobase/fil/fil0fil.c 2011-07-07 18:43:12.000000000 +040060+++ b/storage/innobase/fil/fil0fil.c
64+++ b/storage/innobase/fil/fil0fil.c 2011-07-07 19:01:22.000000000 +0400
65@@ -2600,7 +2600,7 @@61@@ -2600,7 +2600,7 @@
66 62
67 os_thread_sleep(20000);63 os_thread_sleep(20000);
@@ -136,9 +132,8 @@
136 }132 }
137 133
138 mem_free(space_ids);134 mem_free(space_ids);
139diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc135--- a/storage/innobase/handler/ha_innodb.cc
140--- a/storage/innobase/handler/ha_innodb.cc 2011-07-07 18:43:12.000000000 +0400136+++ b/storage/innobase/handler/ha_innodb.cc
141+++ b/storage/innobase/handler/ha_innodb.cc 2011-07-07 19:01:24.000000000 +0400
142@@ -444,6 +444,12 @@137@@ -444,6 +444,12 @@
143 "Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout.",138 "Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout.",
144 NULL, NULL, 50, 1, 1024 * 1024 * 1024, 0);139 NULL, NULL, 50, 1, 1024 * 1024 * 1024, 0);
@@ -341,9 +336,8 @@
341 MYSQL_SYSVAR(use_sys_malloc),336 MYSQL_SYSVAR(use_sys_malloc),
342 MYSQL_SYSVAR(use_native_aio),337 MYSQL_SYSVAR(use_native_aio),
343 MYSQL_SYSVAR(change_buffering),338 MYSQL_SYSVAR(change_buffering),
344diff -ruN a/storage/innobase/ibuf/ibuf0ibuf.c b/storage/innobase/ibuf/ibuf0ibuf.c339--- a/storage/innobase/ibuf/ibuf0ibuf.c
345--- a/storage/innobase/ibuf/ibuf0ibuf.c 2011-05-11 15:54:12.000000000 +0400340+++ b/storage/innobase/ibuf/ibuf0ibuf.c
346+++ b/storage/innobase/ibuf/ibuf0ibuf.c 2011-07-07 19:01:23.000000000 +0400
347@@ -514,8 +514,10 @@341@@ -514,8 +514,10 @@
348 grow in size, as the references on the upper levels of the tree can342 grow in size, as the references on the upper levels of the tree can
349 change */343 change */
@@ -369,9 +363,8 @@
369 363
370 sync = (size >= max_size + IBUF_CONTRACT_ON_INSERT_SYNC);364 sync = (size >= max_size + IBUF_CONTRACT_ON_INSERT_SYNC);
371 365
372diff -ruN a/storage/innobase/include/buf0rea.h b/storage/innobase/include/buf0rea.h366--- a/storage/innobase/include/buf0rea.h
373--- a/storage/innobase/include/buf0rea.h 2011-05-11 15:54:12.000000000 +0400367+++ b/storage/innobase/include/buf0rea.h
374+++ b/storage/innobase/include/buf0rea.h 2011-07-07 19:01:21.000000000 +0400
375@@ -124,8 +124,7 @@368@@ -124,8 +124,7 @@
376 369
377 /** The size in pages of the area which the read-ahead algorithms read if370 /** The size in pages of the area which the read-ahead algorithms read if
@@ -382,9 +375,8 @@
382 375
383 /** @name Modes used in read-ahead @{ */376 /** @name Modes used in read-ahead @{ */
384 /** read only pages belonging to the insert buffer tree */377 /** read only pages belonging to the insert buffer tree */
385diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h378--- a/storage/innobase/include/fil0fil.h
386--- a/storage/innobase/include/fil0fil.h 2011-07-07 18:43:12.000000000 +0400379+++ b/storage/innobase/include/fil0fil.h
387+++ b/storage/innobase/include/fil0fil.h 2011-07-07 19:01:21.000000000 +0400
388@@ -658,8 +658,9 @@380@@ -658,8 +658,9 @@
389 void381 void
390 fil_flush(382 fil_flush(
@@ -396,9 +388,8 @@
396 /**********************************************************************//**388 /**********************************************************************//**
397 Flushes to disk writes in file spaces of the given type possibly cached by389 Flushes to disk writes in file spaces of the given type possibly cached by
398 the OS. */390 the OS. */
399diff -ruN a/storage/innobase/include/ha_prototypes.h b/storage/innobase/include/ha_prototypes.h391--- a/storage/innobase/include/ha_prototypes.h
400--- a/storage/innobase/include/ha_prototypes.h 2011-05-11 15:54:12.000000000 +0400392+++ b/storage/innobase/include/ha_prototypes.h
401+++ b/storage/innobase/include/ha_prototypes.h 2011-07-07 18:43:13.000000000 +0400
402@@ -284,6 +284,13 @@393@@ -284,6 +284,13 @@
403 /*===================*/394 /*===================*/
404 void* thd, /*!< in: thread handle (THD*) */395 void* thd, /*!< in: thread handle (THD*) */
@@ -413,9 +404,8 @@
413 404
414 /**********************************************************************//**405 /**********************************************************************//**
415 Get the current setting of the lower_case_table_names global parameter from406 Get the current setting of the lower_case_table_names global parameter from
416diff -ruN a/storage/innobase/include/os0file.h b/storage/innobase/include/os0file.h407--- a/storage/innobase/include/os0file.h
417--- a/storage/innobase/include/os0file.h 2011-05-11 15:54:12.000000000 +0400408+++ b/storage/innobase/include/os0file.h
418+++ b/storage/innobase/include/os0file.h 2011-07-07 19:01:21.000000000 +0400
419@@ -296,8 +296,8 @@409@@ -296,8 +296,8 @@
420 pfs_os_file_write_func(name, file, buf, offset, offset_high, \410 pfs_os_file_write_func(name, file, buf, offset, offset_high, \
421 n, __FILE__, __LINE__)411 n, __FILE__, __LINE__)
@@ -454,9 +444,8 @@
454 /***********************************************************************//**444 /***********************************************************************//**
455 Retrieves the last error number if an error occurs in a file io function.445 Retrieves the last error number if an error occurs in a file io function.
456 The number should be retrieved before any other OS calls (because they may446 The number should be retrieved before any other OS calls (because they may
457diff -ruN a/storage/innobase/include/os0file.ic b/storage/innobase/include/os0file.ic447--- a/storage/innobase/include/os0file.ic
458--- a/storage/innobase/include/os0file.ic 2011-05-11 15:54:12.000000000 +0400448+++ b/storage/innobase/include/os0file.ic
459+++ b/storage/innobase/include/os0file.ic 2011-07-07 19:01:21.000000000 +0400
460@@ -369,6 +369,7 @@449@@ -369,6 +369,7 @@
461 pfs_os_file_flush_func(450 pfs_os_file_flush_func(
462 /*===================*/451 /*===================*/
@@ -474,9 +463,8 @@
474 463
475 register_pfs_file_io_end(locker, 0);464 register_pfs_file_io_end(locker, 0);
476 465
477diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h466--- a/storage/innobase/include/srv0srv.h
478--- a/storage/innobase/include/srv0srv.h 2011-07-07 18:43:12.000000000 +0400467+++ b/storage/innobase/include/srv0srv.h
479+++ b/storage/innobase/include/srv0srv.h 2011-07-07 19:01:23.000000000 +0400
480@@ -138,7 +138,8 @@468@@ -138,7 +138,8 @@
481 extern ulint srv_n_log_files;469 extern ulint srv_n_log_files;
482 extern ulint srv_log_file_size;470 extern ulint srv_log_file_size;
@@ -515,9 +503,8 @@
515 };503 };
516 504
517 /** Alternatives for file i/o in Windows */505 /** Alternatives for file i/o in Windows */
518diff -ruN a/storage/innobase/log/log0log.c b/storage/innobase/log/log0log.c506--- a/storage/innobase/log/log0log.c
519--- a/storage/innobase/log/log0log.c 2011-05-11 15:54:12.000000000 +0400507+++ b/storage/innobase/log/log0log.c
520+++ b/storage/innobase/log/log0log.c 2011-07-07 19:01:19.000000000 +0400
521@@ -48,6 +48,7 @@508@@ -48,6 +48,7 @@
522 #include "srv0start.h"509 #include "srv0start.h"
523 #include "trx0sys.h"510 #include "trx0sys.h"
@@ -674,9 +661,8 @@
674 current_time = time(NULL);661 current_time = time(NULL);
675 662
676 time_elapsed = 0.001 + difftime(current_time,663 time_elapsed = 0.001 + difftime(current_time,
677diff -ruN a/storage/innobase/log/log0recv.c b/storage/innobase/log/log0recv.c664--- a/storage/innobase/log/log0recv.c
678--- a/storage/innobase/log/log0recv.c 2011-05-11 15:54:12.000000000 +0400665+++ b/storage/innobase/log/log0recv.c
679+++ b/storage/innobase/log/log0recv.c 2011-07-07 19:01:22.000000000 +0400
680@@ -2906,9 +2906,12 @@666@@ -2906,9 +2906,12 @@
681 ib_uint64_t archived_lsn;667 ib_uint64_t archived_lsn;
682 #endif /* UNIV_LOG_ARCHIVE */668 #endif /* UNIV_LOG_ARCHIVE */
@@ -709,9 +695,8 @@
709 os_file_close(log_file);695 os_file_close(log_file);
710 696
711 ut_free(buf);697 ut_free(buf);
712diff -ruN a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c698--- a/storage/innobase/os/os0file.c
713--- a/storage/innobase/os/os0file.c 2011-05-11 15:54:12.000000000 +0400699+++ b/storage/innobase/os/os0file.c
714+++ b/storage/innobase/os/os0file.c 2011-07-07 19:01:37.000000000 +0400
715@@ -1424,7 +1424,7 @@700@@ -1424,7 +1424,7 @@
716 #endif701 #endif
717 #ifdef UNIV_NON_BUFFERED_IO702 #ifdef UNIV_NON_BUFFERED_IO
@@ -855,9 +840,8 @@
855 ut_error;840 ut_error;
856 }841 }
857 #endif /* UNIV_DO_FLUSH */842 #endif /* UNIV_DO_FLUSH */
858diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c843--- a/storage/innobase/srv/srv0srv.c
859--- a/storage/innobase/srv/srv0srv.c 2011-07-07 18:43:13.000000000 +0400844+++ b/storage/innobase/srv/srv0srv.c
860+++ b/storage/innobase/srv/srv0srv.c 2011-07-07 19:01:23.000000000 +0400
861@@ -183,7 +183,8 @@845@@ -183,7 +183,8 @@
862 UNIV_INTERN ulint srv_log_file_size = ULINT_MAX;846 UNIV_INTERN ulint srv_log_file_size = ULINT_MAX;
863 /* size in database pages */847 /* size in database pages */
@@ -1277,9 +1261,8 @@
1277 }1261 }
1278 1262
1279 mutex_enter(&kernel_mutex);1263 mutex_enter(&kernel_mutex);
1280diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c1264--- a/storage/innobase/srv/srv0start.c
1281--- a/storage/innobase/srv/srv0start.c 2011-05-11 15:54:12.000000000 +04001265+++ b/storage/innobase/srv/srv0start.c
1282+++ b/storage/innobase/srv/srv0start.c 2011-07-07 19:01:21.000000000 +0400
1283@@ -1217,6 +1217,9 @@1266@@ -1217,6 +1217,9 @@
1284 } else if (0 == ut_strcmp(srv_file_flush_method_str, "O_DIRECT")) {1267 } else if (0 == ut_strcmp(srv_file_flush_method_str, "O_DIRECT")) {
1285 srv_unix_file_flush_method = SRV_UNIX_O_DIRECT;1268 srv_unix_file_flush_method = SRV_UNIX_O_DIRECT;
@@ -1290,9 +1273,8 @@
1290 } else if (0 == ut_strcmp(srv_file_flush_method_str, "littlesync")) {1273 } else if (0 == ut_strcmp(srv_file_flush_method_str, "littlesync")) {
1291 srv_unix_file_flush_method = SRV_UNIX_LITTLESYNC;1274 srv_unix_file_flush_method = SRV_UNIX_LITTLESYNC;
1292 1275
1293diff -ruN a/storage/innobase/trx/trx0purge.c b/storage/innobase/trx/trx0purge.c1276--- a/storage/innobase/trx/trx0purge.c
1294--- a/storage/innobase/trx/trx0purge.c 2011-07-07 18:43:13.000000000 +04001277+++ b/storage/innobase/trx/trx0purge.c
1295+++ b/storage/innobase/trx/trx0purge.c 2011-07-07 19:01:19.000000000 +0400
1296@@ -392,10 +392,10 @@1278@@ -392,10 +392,10 @@
1297 trx_sys->rseg_history_len++;1279 trx_sys->rseg_history_len++;
1298 mutex_exit(&kernel_mutex);1280 mutex_exit(&kernel_mutex);
@@ -1306,9 +1288,8 @@
1306 }1288 }
1307 1289
1308 /**********************************************************************//**1290 /**********************************************************************//**
1309diff -ruN a/storage/innobase/trx/trx0trx.c b/storage/innobase/trx/trx0trx.c1291--- a/storage/innobase/trx/trx0trx.c
1310--- a/storage/innobase/trx/trx0trx.c 2011-05-11 15:54:12.000000000 +04001292+++ b/storage/innobase/trx/trx0trx.c
1311+++ b/storage/innobase/trx/trx0trx.c 2011-07-07 19:01:24.000000000 +0400
1312@@ -984,6 +984,7 @@1293@@ -984,6 +984,7 @@
1313 trx->read_view = NULL;1294 trx->read_view = NULL;
1314 1295
13151296
=== modified file 'patches/innodb_lru_dump_restore.patch'
--- patches/innodb_lru_dump_restore.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_lru_dump_restore.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c8--- a/storage/innobase/buf/buf0lru.c
9--- a/storage/innobase/buf/buf0lru.c 2010-12-03 15:49:59.185023424 +09009+++ b/storage/innobase/buf/buf0lru.c
10+++ b/storage/innobase/buf/buf0lru.c 2010-12-04 15:33:37.626482350 +0900
11@@ -2247,6 +2247,284 @@10@@ -2247,6 +2247,284 @@
12 memset(&buf_LRU_stat_cur, 0, sizeof buf_LRU_stat_cur);11 memset(&buf_LRU_stat_cur, 0, sizeof buf_LRU_stat_cur);
13 }12 }
@@ -293,9 +292,8 @@
293 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG292 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
294 /**********************************************************************//**293 /**********************************************************************//**
295 Validates the LRU list for one buffer pool instance. */294 Validates the LRU list for one buffer pool instance. */
296diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c295--- a/storage/innobase/buf/buf0rea.c
297--- a/storage/innobase/buf/buf0rea.c 2010-12-03 17:49:11.576124814 +0900296+++ b/storage/innobase/buf/buf0rea.c
298+++ b/storage/innobase/buf/buf0rea.c 2010-12-04 15:33:37.628480605 +0900
299@@ -58,7 +58,7 @@297@@ -58,7 +58,7 @@
300 which case it is never read into the pool, or if the tablespace does298 which case it is never read into the pool, or if the tablespace does
301 not exist or is being dropped 299 not exist or is being dropped
@@ -305,9 +303,8 @@
305 ulint303 ulint
306 buf_read_page_low(304 buf_read_page_low(
307 /*==============*/305 /*==============*/
308diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c306--- a/storage/innobase/fil/fil0fil.c
309--- a/storage/innobase/fil/fil0fil.c 2010-12-03 17:49:11.581025127 +0900307+++ b/storage/innobase/fil/fil0fil.c
310+++ b/storage/innobase/fil/fil0fil.c 2010-12-04 15:33:37.632482885 +0900
311@@ -5289,6 +5289,70 @@308@@ -5289,6 +5289,70 @@
312 return(DB_SUCCESS);309 return(DB_SUCCESS);
313 }310 }
@@ -379,9 +376,8 @@
379 #ifndef UNIV_HOTBACKUP376 #ifndef UNIV_HOTBACKUP
380 /**********************************************************************//**377 /**********************************************************************//**
381 Waits for an aio operation to complete. This function is used to write the378 Waits for an aio operation to complete. This function is used to write the
382diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc379--- a/storage/innobase/handler/ha_innodb.cc
383--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:49:11.589956135 +0900380+++ b/storage/innobase/handler/ha_innodb.cc
384+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:33:37.645555490 +0900
385@@ -11793,6 +11793,12 @@381@@ -11793,6 +11793,12 @@
386 "Limit the allocated memory for dictionary cache. (0: unlimited)",382 "Limit the allocated memory for dictionary cache. (0: unlimited)",
387 NULL, NULL, 0, 0, LONG_MAX, 0);383 NULL, NULL, 0, 0, LONG_MAX, 0);
@@ -403,9 +399,8 @@
403 MYSQL_SYSVAR(purge_threads),399 MYSQL_SYSVAR(purge_threads),
404 MYSQL_SYSVAR(purge_batch_size),400 MYSQL_SYSVAR(purge_batch_size),
405 MYSQL_SYSVAR(rollback_segments),401 MYSQL_SYSVAR(rollback_segments),
406diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc402--- a/storage/innobase/handler/i_s.cc
407--- a/storage/innobase/handler/i_s.cc 2010-12-03 17:34:35.286211349 +0900403+++ b/storage/innobase/handler/i_s.cc
408+++ b/storage/innobase/handler/i_s.cc 2010-12-04 15:33:37.677480733 +0900
409@@ -50,6 +50,7 @@404@@ -50,6 +50,7 @@
410 #include "trx0rseg.h" /* for trx_rseg_struct */405 #include "trx0rseg.h" /* for trx_rseg_struct */
411 #include "trx0sys.h" /* for trx_sys */406 #include "trx0sys.h" /* for trx_sys */
@@ -451,9 +446,8 @@
451 446
452 field_store_string(i_s_table->field[0],447 field_store_string(i_s_table->field[0],
453 "Undefined XTRA_* command.");448 "Undefined XTRA_* command.");
454diff -ruN a/storage/innobase/include/buf0lru.h b/storage/innobase/include/buf0lru.h449--- a/storage/innobase/include/buf0lru.h
455--- a/storage/innobase/include/buf0lru.h 2010-12-03 15:49:59.223956070 +0900450+++ b/storage/innobase/include/buf0lru.h
456+++ b/storage/innobase/include/buf0lru.h 2010-12-04 15:33:37.681481467 +0900
457@@ -215,6 +215,18 @@451@@ -215,6 +215,18 @@
458 void452 void
459 buf_LRU_stat_update(void);453 buf_LRU_stat_update(void);
@@ -473,9 +467,8 @@
473 467
474 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG468 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
475 /**********************************************************************//**469 /**********************************************************************//**
476diff -ruN a/storage/innobase/include/buf0rea.h b/storage/innobase/include/buf0rea.h470--- a/storage/innobase/include/buf0rea.h
477--- a/storage/innobase/include/buf0rea.h 2010-12-03 17:49:11.596953870 +0900471+++ b/storage/innobase/include/buf0rea.h
478+++ b/storage/innobase/include/buf0rea.h 2010-12-04 15:33:37.682563900 +0900
479@@ -31,6 +31,37 @@472@@ -31,6 +31,37 @@
480 #include "buf0types.h"473 #include "buf0types.h"
481 474
@@ -514,9 +507,8 @@
514 High-level function which reads a page asynchronously from a file to the507 High-level function which reads a page asynchronously from a file to the
515 buffer buf_pool if it is not already there. Sets the io_fix flag and sets508 buffer buf_pool if it is not already there. Sets the io_fix flag and sets
516 an exclusive lock on the buffer frame. The flag is cleared and the x-lock509 an exclusive lock on the buffer frame. The flag is cleared and the x-lock
517diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h510--- a/storage/innobase/include/fil0fil.h
518--- a/storage/innobase/include/fil0fil.h 2010-12-03 17:49:11.597953501 +0900511+++ b/storage/innobase/include/fil0fil.h
519+++ b/storage/innobase/include/fil0fil.h 2010-12-04 15:33:37.684551372 +0900
520@@ -644,6 +644,14 @@512@@ -644,6 +644,14 @@
521 void* message, /*!< in: message for aio handler if non-sync513 void* message, /*!< in: message for aio handler if non-sync
522 aio used, else ignored */514 aio used, else ignored */
@@ -532,9 +524,8 @@
532 /**********************************************************************//**524 /**********************************************************************//**
533 Waits for an aio operation to complete. This function is used to write the525 Waits for an aio operation to complete. This function is used to write the
534 handler for completed requests. The aio array of pending requests is divided526 handler for completed requests. The aio array of pending requests is divided
535diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h527--- a/storage/innobase/include/srv0srv.h
536--- a/storage/innobase/include/srv0srv.h 2010-12-03 17:49:11.603969747 +0900528+++ b/storage/innobase/include/srv0srv.h
537+++ b/storage/innobase/include/srv0srv.h 2010-12-04 15:33:37.685550816 +0900
538@@ -356,6 +356,9 @@529@@ -356,6 +356,9 @@
539 reading of a disk page */530 reading of a disk page */
540 extern ulint srv_buf_pool_reads;531 extern ulint srv_buf_pool_reads;
@@ -562,9 +553,8 @@
562 /******************************************************************//**553 /******************************************************************//**
563 Outputs to a file the output of the InnoDB Monitor.554 Outputs to a file the output of the InnoDB Monitor.
564 @return FALSE if not all information printed555 @return FALSE if not all information printed
565diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c556--- a/storage/innobase/srv/srv0srv.c
566--- a/storage/innobase/srv/srv0srv.c 2010-12-03 17:49:11.620986661 +0900557+++ b/storage/innobase/srv/srv0srv.c
567+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 15:33:37.708550811 +0900
568@@ -330,6 +330,9 @@558@@ -330,6 +330,9 @@
569 reading of a disk page */559 reading of a disk page */
570 UNIV_INTERN ulint srv_buf_pool_reads = 0;560 UNIV_INTERN ulint srv_buf_pool_reads = 0;
@@ -575,15 +565,10 @@
575 /* structure to pass status variables to MySQL */565 /* structure to pass status variables to MySQL */
576 UNIV_INTERN export_struc export_vars;566 UNIV_INTERN export_struc export_vars;
577 567
578@@ -2701,6 +2704,56 @@568@@ -2706,6 +2709,56 @@
579 /* We count the number of threads in os_thread_exit(). A created569 OS_THREAD_DUMMY_RETURN;
580 thread should always use that to exit and not use return() to exit. */570 }
581 571
582+ os_thread_exit(NULL);
583+
584+ OS_THREAD_DUMMY_RETURN;
585+}
586+
587+/*********************************************************************//**572+/*********************************************************************//**
588+A thread which restores the buffer pool from a dump file on startup and does573+A thread which restores the buffer pool from a dump file on startup and does
589+periodic buffer pool dumps.574+periodic buffer pool dumps.
@@ -629,12 +614,16 @@
629+ /* We count the number of threads in os_thread_exit(). A created614+ /* We count the number of threads in os_thread_exit(). A created
630+ thread should always use that to exit and not use return() to exit. */615+ thread should always use that to exit and not use return() to exit. */
631+616+
632 os_thread_exit(NULL);617+ os_thread_exit(NULL);
633 618+
634 OS_THREAD_DUMMY_RETURN;619+ OS_THREAD_DUMMY_RETURN;
635diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c620+}
636--- a/storage/innobase/srv/srv0start.c 2010-12-03 15:18:48.916955609 +0900621+
637+++ b/storage/innobase/srv/srv0start.c 2010-12-04 15:33:37.711484798 +0900622 /**********************************************************************//**
623 Check whether any background thread is active.
624 @return FALSE if all are are suspended or have exited. */
625--- a/storage/innobase/srv/srv0start.c
626+++ b/storage/innobase/srv/srv0start.c
638@@ -120,9 +120,9 @@627@@ -120,9 +120,9 @@
639 static os_file_t files[1000];628 static os_file_t files[1000];
640 629
641630
=== modified file 'patches/innodb_opt_lru_count.patch'
--- patches/innodb_opt_lru_count.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_opt_lru_count.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buddy.c b/storage/innobase/buf/buf0buddy.c8--- a/storage/innobase/buf/buf0buddy.c
9--- a/storage/innobase/buf/buf0buddy.c 2010-11-03 07:01:13.000000000 +09009+++ b/storage/innobase/buf/buf0buddy.c
10+++ b/storage/innobase/buf/buf0buddy.c 2010-12-03 15:20:49.593024343 +0900
11@@ -137,7 +137,7 @@10@@ -137,7 +137,7 @@
12 ut_ad(buf_page_get_state(ut_list_node_313)11 ut_ad(buf_page_get_state(ut_list_node_313)
13 == BUF_BLOCK_ZIP_FREE)));12 == BUF_BLOCK_ZIP_FREE)));
@@ -17,9 +16,8 @@
17 16
18 if (bpage) {17 if (bpage) {
19 UNIV_MEM_VALID(bpage, BUF_BUDDY_LOW << i);18 UNIV_MEM_VALID(bpage, BUF_BUDDY_LOW << i);
20diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c19--- a/storage/innobase/buf/buf0buf.c
21--- a/storage/innobase/buf/buf0buf.c 2010-12-03 15:18:48.866986963 +090020+++ b/storage/innobase/buf/buf0buf.c
22+++ b/storage/innobase/buf/buf0buf.c 2010-12-03 15:20:49.595987311 +0900
23@@ -881,9 +881,9 @@21@@ -881,9 +881,9 @@
24 block->page.in_zip_hash = FALSE;22 block->page.in_zip_hash = FALSE;
25 block->page.in_flush_list = FALSE;23 block->page.in_flush_list = FALSE;
@@ -59,9 +57,8 @@
59 57
60 frame = block->frame;58 frame = block->frame;
61 59
62diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c60--- a/storage/innobase/buf/buf0flu.c
63--- a/storage/innobase/buf/buf0flu.c 2010-12-03 15:18:48.868953442 +090061+++ b/storage/innobase/buf/buf0flu.c
64+++ b/storage/innobase/buf/buf0flu.c 2010-12-03 15:20:49.599986956 +0900
65@@ -431,19 +431,21 @@62@@ -431,19 +431,21 @@
66 buf_page_in_file(bpage) and in the LRU list */63 buf_page_in_file(bpage) and in the LRU list */
67 {64 {
@@ -187,9 +184,8 @@
187 }184 }
188 }185 }
189 186
190diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c187--- a/storage/innobase/buf/buf0lru.c
191--- a/storage/innobase/buf/buf0lru.c 2010-11-03 07:01:13.000000000 +0900188+++ b/storage/innobase/buf/buf0lru.c
192+++ b/storage/innobase/buf/buf0lru.c 2010-12-03 15:20:49.602952786 +0900
193@@ -996,7 +996,7 @@189@@ -996,7 +996,7 @@
194 190
195 /* No free block was found: try to flush the LRU list */191 /* No free block was found: try to flush the LRU list */
@@ -235,9 +231,8 @@
235 buf_LRU_add_block_low(b, buf_page_is_old(b));231 buf_LRU_add_block_low(b, buf_page_is_old(b));
236 }232 }
237 233
238diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c234--- a/storage/innobase/buf/buf0rea.c
239--- a/storage/innobase/buf/buf0rea.c 2010-12-03 15:18:48.870953384 +0900235+++ b/storage/innobase/buf/buf0rea.c
240+++ b/storage/innobase/buf/buf0rea.c 2010-12-03 15:20:49.604956032 +0900
241@@ -200,7 +200,7 @@236@@ -200,7 +200,7 @@
242 }237 }
243 238
@@ -274,9 +269,8 @@
274 269
275 #ifdef UNIV_DEBUG270 #ifdef UNIV_DEBUG
276 if (buf_debug_prints) {271 if (buf_debug_prints) {
277diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h272--- a/storage/innobase/include/buf0buf.h
278--- a/storage/innobase/include/buf0buf.h 2010-11-03 07:01:13.000000000 +0900273+++ b/storage/innobase/include/buf0buf.h
279+++ b/storage/innobase/include/buf0buf.h 2010-12-03 15:20:49.608986590 +0900
280@@ -1387,11 +1387,11 @@274@@ -1387,11 +1387,11 @@
281 275
282 UT_LIST_NODE_T(buf_page_t) LRU;276 UT_LIST_NODE_T(buf_page_t) LRU;
@@ -291,9 +285,8 @@
291 unsigned old:1; /*!< TRUE if the block is in the old285 unsigned old:1; /*!< TRUE if the block is in the old
292 blocks in buf_pool->LRU_old */286 blocks in buf_pool->LRU_old */
293 unsigned freed_page_clock:31;/*!< the value of287 unsigned freed_page_clock:31;/*!< the value of
294diff -ruN a/storage/innobase/include/buf0flu.h b/storage/innobase/include/buf0flu.h288--- a/storage/innobase/include/buf0flu.h
295--- a/storage/innobase/include/buf0flu.h 2010-11-03 07:01:13.000000000 +0900289+++ b/storage/innobase/include/buf0flu.h
296+++ b/storage/innobase/include/buf0flu.h 2010-12-03 15:20:49.609953185 +0900
297@@ -65,13 +65,15 @@290@@ -65,13 +65,15 @@
298 void291 void
299 buf_flush_free_margin(292 buf_flush_free_margin(
300293
=== modified file 'patches/innodb_overwrite_relay_log_info.patch'
--- patches/innodb_overwrite_relay_log_info.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_overwrite_relay_log_info.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:37:45.516105468 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:38:20.318952987 +0900
11@@ -42,6 +42,8 @@10@@ -42,6 +42,8 @@
12 #pragma implementation // gcc: Class implementation11 #pragma implementation // gcc: Class implementation
13 #endif12 #endif
@@ -270,9 +269,8 @@
270 MYSQL_SYSVAR(rollback_on_timeout),269 MYSQL_SYSVAR(rollback_on_timeout),
271 MYSQL_SYSVAR(stats_on_metadata),270 MYSQL_SYSVAR(stats_on_metadata),
272 MYSQL_SYSVAR(stats_sample_pages),271 MYSQL_SYSVAR(stats_sample_pages),
273diff -ruN a/storage/innobase/include/trx0sys.h b/storage/innobase/include/trx0sys.h272--- a/storage/innobase/include/trx0sys.h
274--- a/storage/innobase/include/trx0sys.h 2010-11-03 07:01:13.000000000 +0900273+++ b/storage/innobase/include/trx0sys.h
275+++ b/storage/innobase/include/trx0sys.h 2010-12-03 15:38:20.321953297 +0900
276@@ -53,6 +53,9 @@274@@ -53,6 +53,9 @@
277 extern ib_int64_t trx_sys_mysql_master_log_pos;275 extern ib_int64_t trx_sys_mysql_master_log_pos;
278 /* @} */276 /* @} */
@@ -309,9 +307,8 @@
309 307
310 /** The offset of the MySQL binlog offset info in the trx system header */308 /** The offset of the MySQL binlog offset info in the trx system header */
311 #define TRX_SYS_MYSQL_LOG_INFO (UNIV_PAGE_SIZE - 1000)309 #define TRX_SYS_MYSQL_LOG_INFO (UNIV_PAGE_SIZE - 1000)
312diff -ruN a/storage/innobase/include/trx0trx.h b/storage/innobase/include/trx0trx.h310--- a/storage/innobase/include/trx0trx.h
313--- a/storage/innobase/include/trx0trx.h 2010-12-03 15:18:48.894955550 +0900311+++ b/storage/innobase/include/trx0trx.h
314+++ b/storage/innobase/include/trx0trx.h 2010-12-03 15:38:20.323953416 +0900
315@@ -580,6 +580,20 @@312@@ -580,6 +580,20 @@
316 ib_int64_t mysql_log_offset;/* if MySQL binlog is used, this field313 ib_int64_t mysql_log_offset;/* if MySQL binlog is used, this field
317 contains the end offset of the binlog314 contains the end offset of the binlog
@@ -333,9 +330,8 @@
333 /*------------------------------*/330 /*------------------------------*/
334 ulint n_mysql_tables_in_use; /* number of Innobase tables331 ulint n_mysql_tables_in_use; /* number of Innobase tables
335 used in the processing of the current332 used in the processing of the current
336diff -ruN a/storage/innobase/trx/trx0sys.c b/storage/innobase/trx/trx0sys.c333--- a/storage/innobase/trx/trx0sys.c
337--- a/storage/innobase/trx/trx0sys.c 2010-11-03 07:01:13.000000000 +0900334+++ b/storage/innobase/trx/trx0sys.c
338+++ b/storage/innobase/trx/trx0sys.c 2010-12-03 15:38:20.325956917 +0900
339@@ -76,13 +76,16 @@335@@ -76,13 +76,16 @@
340 file name and position here. */336 file name and position here. */
341 /* @{ */337 /* @{ */
@@ -434,9 +430,8 @@
434 mtr_commit(&mtr);430 mtr_commit(&mtr);
435 }431 }
436 432
437diff -ruN a/storage/innobase/trx/trx0trx.c b/storage/innobase/trx/trx0trx.c433--- a/storage/innobase/trx/trx0trx.c
438--- a/storage/innobase/trx/trx0trx.c 2010-12-03 15:37:45.549028990 +0900434+++ b/storage/innobase/trx/trx0trx.c
439+++ b/storage/innobase/trx/trx0trx.c 2010-12-03 15:38:20.328957217 +0900
440@@ -138,6 +138,10 @@435@@ -138,6 +138,10 @@
441 436
442 trx->mysql_log_file_name = NULL;437 trx->mysql_log_file_name = NULL;
443438
=== modified file 'patches/innodb_pass_corrupt_table.patch'
--- patches/innodb_pass_corrupt_table.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_pass_corrupt_table.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/btr/btr0btr.c b/storage/innobase/btr/btr0btr.c8--- a/storage/innobase/btr/btr0btr.c
9--- a/storage/innobase/btr/btr0btr.c 2010-11-03 07:01:13.000000000 +09009+++ b/storage/innobase/btr/btr0btr.c
10+++ b/storage/innobase/btr/btr0btr.c 2010-12-04 15:38:18.110513593 +0900
11@@ -691,6 +691,12 @@10@@ -691,6 +691,12 @@
12 root_page_no = dict_index_get_page(index);11 root_page_no = dict_index_get_page(index);
13 12
@@ -73,9 +72,8 @@
73 btr_search_drop_page_hash_index(block);72 btr_search_drop_page_hash_index(block);
74 73
75 header = buf_block_get_frame(block) + PAGE_HEADER + PAGE_BTR_SEG_TOP;74 header = buf_block_get_frame(block) + PAGE_HEADER + PAGE_BTR_SEG_TOP;
76diff -ruN a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c75--- a/storage/innobase/btr/btr0cur.c
77--- a/storage/innobase/btr/btr0cur.c 2010-12-03 17:30:16.239038936 +090076+++ b/storage/innobase/btr/btr0cur.c
78+++ b/storage/innobase/btr/btr0cur.c 2010-12-04 15:38:18.114551906 +0900
79@@ -250,6 +250,11 @@77@@ -250,6 +250,11 @@
80 case BTR_MODIFY_LEAF:78 case BTR_MODIFY_LEAF:
81 mode = latch_mode == BTR_SEARCH_LEAF ? RW_S_LATCH : RW_X_LATCH;79 mode = latch_mode == BTR_SEARCH_LEAF ? RW_S_LATCH : RW_X_LATCH;
@@ -255,9 +253,8 @@
255 rec = page_rec_get_next(page_get_infimum_rec(page));253 rec = page_rec_get_next(page_get_infimum_rec(page));
256 254
257 if (!page_rec_is_supremum(rec)) {255 if (!page_rec_is_supremum(rec)) {
258diff -ruN a/storage/innobase/btr/btr0pcur.c b/storage/innobase/btr/btr0pcur.c256--- a/storage/innobase/btr/btr0pcur.c
259--- a/storage/innobase/btr/btr0pcur.c 2010-11-03 07:01:13.000000000 +0900257+++ b/storage/innobase/btr/btr0pcur.c
260+++ b/storage/innobase/btr/btr0pcur.c 2010-12-04 15:38:18.116563877 +0900
261@@ -32,7 +32,7 @@258@@ -32,7 +32,7 @@
262 #include "ut0byte.h"259 #include "ut0byte.h"
263 #include "rem0cmp.h"260 #include "rem0cmp.h"
@@ -296,9 +293,8 @@
296 #ifdef UNIV_BTR_DEBUG293 #ifdef UNIV_BTR_DEBUG
297 ut_a(page_is_comp(next_page) == page_is_comp(page));294 ut_a(page_is_comp(next_page) == page_is_comp(page));
298 ut_a(btr_page_get_prev(next_page, mtr)295 ut_a(btr_page_get_prev(next_page, mtr)
299diff -ruN a/storage/innobase/btr/btr0sea.c b/storage/innobase/btr/btr0sea.c296--- a/storage/innobase/btr/btr0sea.c
300--- a/storage/innobase/btr/btr0sea.c 2010-12-03 15:49:59.166193407 +0900297+++ b/storage/innobase/btr/btr0sea.c
301+++ b/storage/innobase/btr/btr0sea.c 2010-12-04 15:38:18.118548961 +0900
302@@ -42,7 +42,7 @@298@@ -42,7 +42,7 @@
303 #include "btr0pcur.h"299 #include "btr0pcur.h"
304 #include "btr0btr.h"300 #include "btr0btr.h"
@@ -320,9 +316,8 @@
320 /* NOTE that the following two function calls do NOT protect316 /* NOTE that the following two function calls do NOT protect
321 info or block->n_fields etc. with any semaphore, to save CPU time!317 info or block->n_fields etc. with any semaphore, to save CPU time!
322 We cannot assume the fields are consistent when we return from318 We cannot assume the fields are consistent when we return from
323diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c319--- a/storage/innobase/buf/buf0buf.c
324--- a/storage/innobase/buf/buf0buf.c 2010-12-04 15:37:50.554565654 +0900320+++ b/storage/innobase/buf/buf0buf.c
325+++ b/storage/innobase/buf/buf0buf.c 2010-12-04 15:38:18.119548922 +0900
326@@ -52,6 +52,7 @@321@@ -52,6 +52,7 @@
327 #include "log0recv.h"322 #include "log0recv.h"
328 #include "page0zip.h"323 #include "page0zip.h"
@@ -431,9 +426,8 @@
431 TRUE);426 TRUE);
432 }427 }
433 }428 }
434diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c429--- a/storage/innobase/buf/buf0rea.c
435--- a/storage/innobase/buf/buf0rea.c 2010-12-04 15:37:50.557553380 +0900430+++ b/storage/innobase/buf/buf0rea.c
436+++ b/storage/innobase/buf/buf0rea.c 2010-12-04 15:41:09.784467585 +0900
437@@ -193,7 +193,14 @@431@@ -193,7 +193,14 @@
438 ((buf_block_t*) bpage)->frame, bpage, trx);432 ((buf_block_t*) bpage)->frame, bpage, trx);
439 }433 }
@@ -449,9 +443,8 @@
449 443
450 if (sync) {444 if (sync) {
451 /* The i/o is already completed when we arrive from445 /* The i/o is already completed when we arrive from
452diff -ruN a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c446--- a/storage/innobase/dict/dict0dict.c
453--- a/storage/innobase/dict/dict0dict.c 2010-12-03 17:30:16.248987063 +0900447+++ b/storage/innobase/dict/dict0dict.c
454+++ b/storage/innobase/dict/dict0dict.c 2010-12-04 15:45:23.808513973 +0900
455@@ -54,6 +54,7 @@448@@ -54,6 +54,7 @@
456 #include "row0merge.h"449 #include "row0merge.h"
457 #include "m_ctype.h" /* my_isspace() */450 #include "m_ctype.h" /* my_isspace() */
@@ -561,9 +554,8 @@
561+ }554+ }
562+}555+}
563 #endif /* !UNIV_HOTBACKUP */556 #endif /* !UNIV_HOTBACKUP */
564diff -ruN a/storage/innobase/dict/dict0mem.c b/storage/innobase/dict/dict0mem.c557--- a/storage/innobase/dict/dict0mem.c
565--- a/storage/innobase/dict/dict0mem.c 2010-11-03 07:01:13.000000000 +0900558+++ b/storage/innobase/dict/dict0mem.c
566+++ b/storage/innobase/dict/dict0mem.c 2010-12-04 15:38:18.126549463 +0900
567@@ -96,6 +96,8 @@559@@ -96,6 +96,8 @@
568 /* The number of transactions that are either waiting on the560 /* The number of transactions that are either waiting on the
569 AUTOINC lock or have been granted the lock. */561 AUTOINC lock or have been granted the lock. */
@@ -573,9 +565,8 @@
573 #endif /* !UNIV_HOTBACKUP */565 #endif /* !UNIV_HOTBACKUP */
574 566
575 ut_d(table->magic_n = DICT_TABLE_MAGIC_N);567 ut_d(table->magic_n = DICT_TABLE_MAGIC_N);
576diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c568--- a/storage/innobase/fil/fil0fil.c
577--- a/storage/innobase/fil/fil0fil.c 2010-12-04 15:37:50.564551587 +0900569+++ b/storage/innobase/fil/fil0fil.c
578+++ b/storage/innobase/fil/fil0fil.c 2010-12-04 15:38:18.128549252 +0900
579@@ -235,6 +235,7 @@570@@ -235,6 +235,7 @@
580 file we have written to */571 file we have written to */
581 ibool is_in_unflushed_spaces; /*!< TRUE if this space is572 ibool is_in_unflushed_spaces; /*!< TRUE if this space is
@@ -684,9 +675,8 @@
684+ mutex_exit(&fil_system->mutex);675+ mutex_exit(&fil_system->mutex);
685+}676+}
686+677+
687diff -ruN a/storage/innobase/fsp/fsp0fsp.c b/storage/innobase/fsp/fsp0fsp.c678--- a/storage/innobase/fsp/fsp0fsp.c
688--- a/storage/innobase/fsp/fsp0fsp.c 2010-12-04 15:37:50.569480615 +0900679+++ b/storage/innobase/fsp/fsp0fsp.c
689+++ b/storage/innobase/fsp/fsp0fsp.c 2010-12-04 15:38:18.131550103 +0900
690@@ -369,6 +369,12 @@680@@ -369,6 +369,12 @@
691 ut_ad(id || !zip_size);681 ut_ad(id || !zip_size);
692 682
@@ -795,9 +785,8 @@
795 descr = fseg_get_first_extent(inode, space, zip_size, mtr);785 descr = fseg_get_first_extent(inode, space, zip_size, mtr);
796 786
797 if (descr != NULL) {787 if (descr != NULL) {
798diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc788--- a/storage/innobase/handler/ha_innodb.cc
799--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:37:50.578486593 +0900789+++ b/storage/innobase/handler/ha_innodb.cc
800+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:38:18.137549396 +0900
801@@ -3972,6 +3972,12 @@790@@ -3972,6 +3972,12 @@
802 DBUG_RETURN(1);791 DBUG_RETURN(1);
803 }792 }
@@ -1073,9 +1062,8 @@
1073 NULL1062 NULL
1074 };1063 };
1075 1064
1076diff -ruN a/storage/innobase/handler/ha_innodb.h b/storage/innobase/handler/ha_innodb.h1065--- a/storage/innobase/handler/ha_innodb.h
1077--- a/storage/innobase/handler/ha_innodb.h 2010-11-03 07:01:13.000000000 +09001066+++ b/storage/innobase/handler/ha_innodb.h
1078+++ b/storage/innobase/handler/ha_innodb.h 2010-12-04 15:38:18.159588579 +0900
1079@@ -52,6 +52,7 @@1067@@ -52,6 +52,7 @@
1080 innodb_idx_translate_t idx_trans_tbl; /*!< index translation1068 innodb_idx_translate_t idx_trans_tbl; /*!< index translation
1081 table between MySQL and1069 table between MySQL and
@@ -1092,9 +1080,8 @@
1092 1080
1093 int write_row(uchar * buf);1081 int write_row(uchar * buf);
1094 int update_row(const uchar * old_data, uchar * new_data);1082 int update_row(const uchar * old_data, uchar * new_data);
1095diff -ruN a/storage/innobase/include/btr0btr.ic b/storage/innobase/include/btr0btr.ic1083--- a/storage/innobase/include/btr0btr.ic
1096--- a/storage/innobase/include/btr0btr.ic 2010-11-03 07:01:13.000000000 +09001084+++ b/storage/innobase/include/btr0btr.ic
1097+++ b/storage/innobase/include/btr0btr.ic 2010-12-04 15:38:18.162515035 +0900
1098@@ -28,7 +28,7 @@1085@@ -28,7 +28,7 @@
1099 #include "mtr0mtr.h"1086 #include "mtr0mtr.h"
1100 #include "mtr0log.h"1087 #include "mtr0log.h"
@@ -1115,9 +1102,8 @@
1115 1102
1116 buf_block_dbg_add_level(block, SYNC_TREE_NODE);1103 buf_block_dbg_add_level(block, SYNC_TREE_NODE);
1117 }1104 }
1118diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h1105--- a/storage/innobase/include/buf0buf.h
1119--- a/storage/innobase/include/buf0buf.h 2010-12-03 15:49:59.218956083 +09001106+++ b/storage/innobase/include/buf0buf.h
1120+++ b/storage/innobase/include/buf0buf.h 2010-12-04 15:38:18.164513667 +0900
1121@@ -986,7 +986,7 @@1107@@ -986,7 +986,7 @@
1122 const buf_block_t* block) /*!< in: pointer to the control block */1108 const buf_block_t* block) /*!< in: pointer to the control block */
1123 __attribute__((pure));1109 __attribute__((pure));
@@ -1135,9 +1121,8 @@
1135 # if defined UNIV_DEBUG_FILE_ACCESSES || defined UNIV_DEBUG1121 # if defined UNIV_DEBUG_FILE_ACCESSES || defined UNIV_DEBUG
1136 ibool file_page_was_freed;1122 ibool file_page_was_freed;
1137 /*!< this is set to TRUE when fsp1123 /*!< this is set to TRUE when fsp
1138diff -ruN a/storage/innobase/include/buf0buf.ic b/storage/innobase/include/buf0buf.ic1124--- a/storage/innobase/include/buf0buf.ic
1139--- a/storage/innobase/include/buf0buf.ic 2010-12-03 15:49:59.221956024 +09001125+++ b/storage/innobase/include/buf0buf.ic
1140+++ b/storage/innobase/include/buf0buf.ic 2010-12-04 15:38:18.167513925 +0900
1141@@ -34,7 +34,7 @@1126@@ -34,7 +34,7 @@
1142 #include "buf0flu.h"1127 #include "buf0flu.h"
1143 #include "buf0lru.h"1128 #include "buf0lru.h"
@@ -1160,9 +1145,8 @@
1160 ut_ad(block);1145 ut_ad(block);
1161 1146
1162 switch (buf_block_get_state(block)) {1147 switch (buf_block_get_state(block)) {
1163diff -ruN a/storage/innobase/include/dict0dict.h b/storage/innobase/include/dict0dict.h1148--- a/storage/innobase/include/dict0dict.h
1164--- a/storage/innobase/include/dict0dict.h 2010-12-03 17:30:16.306955940 +09001149+++ b/storage/innobase/include/dict0dict.h
1165+++ b/storage/innobase/include/dict0dict.h 2010-12-04 15:38:18.169513750 +0900
1166@@ -1245,6 +1245,15 @@1150@@ -1245,6 +1245,15 @@
1167 dict_close(void);1151 dict_close(void);
1168 /*============*/1152 /*============*/
@@ -1179,9 +1163,8 @@
1179 #ifndef UNIV_NONINL1163 #ifndef UNIV_NONINL
1180 #include "dict0dict.ic"1164 #include "dict0dict.ic"
1181 #endif1165 #endif
1182diff -ruN a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h1166--- a/storage/innobase/include/dict0mem.h
1183--- a/storage/innobase/include/dict0mem.h 2010-11-03 07:01:13.000000000 +09001167+++ b/storage/innobase/include/dict0mem.h
1184+++ b/storage/innobase/include/dict0mem.h 2010-12-04 15:38:18.171513956 +0900
1185@@ -640,6 +640,7 @@1168@@ -640,6 +640,7 @@
1186 the AUTOINC lock on this table. */1169 the AUTOINC lock on this table. */
1187 /* @} */1170 /* @} */
@@ -1190,9 +1173,8 @@
1190 #endif /* !UNIV_HOTBACKUP */1173 #endif /* !UNIV_HOTBACKUP */
1191 1174
1192 #ifdef UNIV_DEBUG1175 #ifdef UNIV_DEBUG
1193diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h1176--- a/storage/innobase/include/fil0fil.h
1194--- a/storage/innobase/include/fil0fil.h 2010-12-04 15:35:29.175520016 +09001177+++ b/storage/innobase/include/fil0fil.h
1195+++ b/storage/innobase/include/fil0fil.h 2010-12-04 15:38:18.172483391 +0900
1196@@ -750,6 +750,19 @@1178@@ -750,6 +750,19 @@
1197 fil_system_hash_nodes(void);1179 fil_system_hash_nodes(void);
1198 /*========================*/1180 /*========================*/
@@ -1213,9 +1195,8 @@
1213 typedef struct fil_space_struct fil_space_t;1195 typedef struct fil_space_struct fil_space_t;
1214 1196
1215 #endif1197 #endif
1216diff -ruN a/storage/innobase/include/fut0fut.ic b/storage/innobase/include/fut0fut.ic1198--- a/storage/innobase/include/fut0fut.ic
1217--- a/storage/innobase/include/fut0fut.ic 2010-11-03 07:01:13.000000000 +09001199+++ b/storage/innobase/include/fut0fut.ic
1218+++ b/storage/innobase/include/fut0fut.ic 2010-12-04 15:38:18.174481728 +0900
1219@@ -23,6 +23,7 @@1200@@ -23,6 +23,7 @@
1220 Created 12/13/1995 Heikki Tuuri1201 Created 12/13/1995 Heikki Tuuri
1221 ***********************************************************************/1202 ***********************************************************************/
@@ -1237,9 +1218,8 @@
1237 ptr = buf_block_get_frame(block) + addr.boffset;1218 ptr = buf_block_get_frame(block) + addr.boffset;
1238 1219
1239 buf_block_dbg_add_level(block, SYNC_NO_ORDER_CHECK);1220 buf_block_dbg_add_level(block, SYNC_NO_ORDER_CHECK);
1240diff -ruN a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h1221--- a/storage/innobase/include/page0page.h
1241--- a/storage/innobase/include/page0page.h 2010-11-03 07:01:13.000000000 +09001222+++ b/storage/innobase/include/page0page.h
1242+++ b/storage/innobase/include/page0page.h 2010-12-04 15:38:18.175514037 +0900
1243@@ -500,7 +500,7 @@1223@@ -500,7 +500,7 @@
1244 page_is_leaf(1224 page_is_leaf(
1245 /*=========*/1225 /*=========*/
@@ -1249,9 +1229,8 @@
1249 /************************************************************//**1229 /************************************************************//**
1250 Gets the pointer to the next record on the page.1230 Gets the pointer to the next record on the page.
1251 @return pointer to next record */1231 @return pointer to next record */
1252diff -ruN a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic1232--- a/storage/innobase/include/page0page.ic
1253--- a/storage/innobase/include/page0page.ic 2010-11-03 07:01:13.000000000 +09001233+++ b/storage/innobase/include/page0page.ic
1254+++ b/storage/innobase/include/page0page.ic 2010-12-04 15:38:18.177482672 +0900
1255@@ -274,6 +274,9 @@1234@@ -274,6 +274,9 @@
1256 /*=========*/1235 /*=========*/
1257 const page_t* page) /*!< in: page */1236 const page_t* page) /*!< in: page */
@@ -1262,9 +1241,8 @@
1262 return(!*(const uint16*) (page + (PAGE_HEADER + PAGE_LEVEL)));1241 return(!*(const uint16*) (page + (PAGE_HEADER + PAGE_LEVEL)));
1263 }1242 }
1264 1243
1265diff -ruN a/storage/innobase/include/page0zip.h b/storage/innobase/include/page0zip.h1244--- a/storage/innobase/include/page0zip.h
1266--- a/storage/innobase/include/page0zip.h 2010-11-03 07:01:13.000000000 +09001245+++ b/storage/innobase/include/page0zip.h
1267+++ b/storage/innobase/include/page0zip.h 2010-12-04 15:38:18.179513974 +0900
1268@@ -114,7 +114,7 @@1246@@ -114,7 +114,7 @@
1269 const page_t* page, /*!< in: uncompressed page */1247 const page_t* page, /*!< in: uncompressed page */
1270 dict_index_t* index, /*!< in: index of the B-tree node */1248 dict_index_t* index, /*!< in: index of the B-tree node */
@@ -1274,9 +1252,8 @@
1274 1252
1275 /**********************************************************************//**1253 /**********************************************************************//**
1276 Decompress a page. This function should tolerate errors on the compressed1254 Decompress a page. This function should tolerate errors on the compressed
1277diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h1255--- a/storage/innobase/include/srv0srv.h
1278--- a/storage/innobase/include/srv0srv.h 2010-12-04 15:37:50.591516341 +09001256+++ b/storage/innobase/include/srv0srv.h
1279+++ b/storage/innobase/include/srv0srv.h 2010-12-04 15:38:18.180563749 +0900
1280@@ -240,6 +240,7 @@1257@@ -240,6 +240,7 @@
1281 extern ulint srv_adaptive_flushing_method;1258 extern ulint srv_adaptive_flushing_method;
1282 1259
@@ -1285,9 +1262,8 @@
1285 1262
1286 extern ulint srv_dict_size_limit;1263 extern ulint srv_dict_size_limit;
1287 /*-------------------------------------------*/1264 /*-------------------------------------------*/
1288diff -ruN a/storage/innobase/page/page0zip.c b/storage/innobase/page/page0zip.c1265--- a/storage/innobase/page/page0zip.c
1289--- a/storage/innobase/page/page0zip.c 2010-11-03 07:01:13.000000000 +09001266+++ b/storage/innobase/page/page0zip.c
1290+++ b/storage/innobase/page/page0zip.c 2010-12-04 15:38:18.195515935 +0900
1291@@ -1153,6 +1153,10 @@1267@@ -1153,6 +1153,10 @@
1292 FILE* logfile = NULL;1268 FILE* logfile = NULL;
1293 #endif1269 #endif
@@ -1299,9 +1275,8 @@
1299 ut_a(page_is_comp(page));1275 ut_a(page_is_comp(page));
1300 ut_a(fil_page_get_type(page) == FIL_PAGE_INDEX);1276 ut_a(fil_page_get_type(page) == FIL_PAGE_INDEX);
1301 ut_ad(page_simple_validate_new((page_t*) page));1277 ut_ad(page_simple_validate_new((page_t*) page));
1302diff -ruN a/storage/innobase/row/row0ins.c b/storage/innobase/row/row0ins.c1278--- a/storage/innobase/row/row0ins.c
1303--- a/storage/innobase/row/row0ins.c 2010-11-03 07:01:13.000000000 +09001279+++ b/storage/innobase/row/row0ins.c
1304+++ b/storage/innobase/row/row0ins.c 2010-12-04 15:38:18.198514028 +0900
1305@@ -1335,6 +1335,12 @@1280@@ -1335,6 +1335,12 @@
1306 const rec_t* rec = btr_pcur_get_rec(&pcur);1281 const rec_t* rec = btr_pcur_get_rec(&pcur);
1307 const buf_block_t* block = btr_pcur_get_block(&pcur);1282 const buf_block_t* block = btr_pcur_get_block(&pcur);
@@ -1315,9 +1290,8 @@
1315 if (page_rec_is_infimum(rec)) {1290 if (page_rec_is_infimum(rec)) {
1316 1291
1317 continue;1292 continue;
1318diff -ruN a/storage/innobase/row/row0merge.c b/storage/innobase/row/row0merge.c1293--- a/storage/innobase/row/row0merge.c
1319--- a/storage/innobase/row/row0merge.c 2010-12-03 17:30:16.330986655 +09001294+++ b/storage/innobase/row/row0merge.c
1320+++ b/storage/innobase/row/row0merge.c 2010-12-04 15:38:18.201513966 +0900
1321@@ -1245,6 +1245,13 @@1295@@ -1245,6 +1245,13 @@
1322 1296
1323 if (UNIV_LIKELY(has_next)) {1297 if (UNIV_LIKELY(has_next)) {
@@ -1332,9 +1306,8 @@
1332 offsets = rec_get_offsets(rec, clust_index, NULL,1306 offsets = rec_get_offsets(rec, clust_index, NULL,
1333 ULINT_UNDEFINED, &row_heap);1307 ULINT_UNDEFINED, &row_heap);
1334 1308
1335diff -ruN a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c1309--- a/storage/innobase/row/row0sel.c
1336--- a/storage/innobase/row/row0sel.c 2010-11-03 07:01:13.000000000 +09001310+++ b/storage/innobase/row/row0sel.c
1337+++ b/storage/innobase/row/row0sel.c 2010-12-04 15:38:18.205551115 +0900
1338@@ -3853,6 +3853,13 @@1311@@ -3853,6 +3853,13 @@
1339 /* PHASE 4: Look for matching records in a loop */1312 /* PHASE 4: Look for matching records in a loop */
1340 1313
@@ -1374,9 +1347,8 @@
1374 if (!rec_validate(rec, offsets)1347 if (!rec_validate(rec, offsets)
1375 || !btr_index_rec_validate(rec, index, FALSE)) {1348 || !btr_index_rec_validate(rec, index, FALSE)) {
1376 fprintf(stderr,1349 fprintf(stderr,
1377diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c1350--- a/storage/innobase/srv/srv0srv.c
1378--- a/storage/innobase/srv/srv0srv.c 2010-12-04 15:37:50.602481253 +09001351+++ b/storage/innobase/srv/srv0srv.c
1379+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 15:38:18.209513823 +0900
1380@@ -430,6 +430,7 @@1352@@ -430,6 +430,7 @@
1381 UNIV_INTERN ulint srv_adaptive_flushing_method = 0; /* 0: native 1: estimate 2: keep_average */1353 UNIV_INTERN ulint srv_adaptive_flushing_method = 0; /* 0: native 1: estimate 2: keep_average */
1382 1354
@@ -1385,9 +1357,8 @@
1385 1357
1386 UNIV_INTERN ulint srv_dict_size_limit = 0;1358 UNIV_INTERN ulint srv_dict_size_limit = 0;
1387 /*-------------------------------------------*/1359 /*-------------------------------------------*/
1388diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c1360--- a/storage/innobase/srv/srv0start.c
1389--- a/storage/innobase/srv/srv0start.c 2010-12-04 15:37:50.605491300 +09001361+++ b/storage/innobase/srv/srv0start.c
1390+++ b/storage/innobase/srv/srv0start.c 2010-12-04 15:38:18.212513722 +0900
1391@@ -2149,6 +2149,13 @@1362@@ -2149,6 +2149,13 @@
1392 1363
1393 os_fast_mutex_free(&srv_os_test_mutex);1364 os_fast_mutex_free(&srv_os_test_mutex);
13941365
=== modified file 'patches/innodb_recovery_patches.patch'
--- patches/innodb_recovery_patches.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_recovery_patches.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c8--- a/storage/innobase/buf/buf0rea.c
9--- a/storage/innobase/buf/buf0rea.c 2010-12-03 15:49:59.187028943 +09009+++ b/storage/innobase/buf/buf0rea.c
10+++ b/storage/innobase/buf/buf0rea.c 2010-12-03 17:30:41.579956150 +0900
11@@ -122,6 +122,46 @@10@@ -122,6 +122,46 @@
12 bpage = buf_page_init_for_read(err, mode, space, zip_size, unzip,11 bpage = buf_page_init_for_read(err, mode, space, zip_size, unzip,
13 tablespace_version, offset);12 tablespace_version, offset);
@@ -106,9 +105,8 @@
106 return;105 return;
107 }106 }
108 107
109diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc108--- a/storage/innobase/handler/ha_innodb.cc
110--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:30:16.261955714 +0900109+++ b/storage/innobase/handler/ha_innodb.cc
111+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:30:41.584971130 +0900
112@@ -182,6 +182,7 @@110@@ -182,6 +182,7 @@
113 #endif /* UNIV_LOG_ARCHIVE */111 #endif /* UNIV_LOG_ARCHIVE */
114 static my_bool innobase_use_doublewrite = TRUE;112 static my_bool innobase_use_doublewrite = TRUE;
@@ -146,9 +144,8 @@
146 MYSQL_SYSVAR(fast_shutdown),144 MYSQL_SYSVAR(fast_shutdown),
147 MYSQL_SYSVAR(file_io_threads),145 MYSQL_SYSVAR(file_io_threads),
148 MYSQL_SYSVAR(read_io_threads),146 MYSQL_SYSVAR(read_io_threads),
149diff -ruN a/storage/innobase/include/log0recv.h b/storage/innobase/include/log0recv.h147--- a/storage/innobase/include/log0recv.h
150--- a/storage/innobase/include/log0recv.h 2010-11-03 07:01:13.000000000 +0900148+++ b/storage/innobase/include/log0recv.h
151+++ b/storage/innobase/include/log0recv.h 2010-12-03 17:30:41.592958318 +0900
152@@ -438,6 +438,39 @@149@@ -438,6 +438,39 @@
153 hash_table_t* addr_hash;/*!< hash table of file addresses of pages */150 hash_table_t* addr_hash;/*!< hash table of file addresses of pages */
154 ulint n_addrs;/*!< number of not processed hashed file151 ulint n_addrs;/*!< number of not processed hashed file
@@ -189,9 +186,8 @@
189 };186 };
190 187
191 /** The recovery system */188 /** The recovery system */
192diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h189--- a/storage/innobase/include/srv0srv.h
193--- a/storage/innobase/include/srv0srv.h 2010-12-03 17:30:16.321953515 +0900190+++ b/storage/innobase/include/srv0srv.h
194+++ b/storage/innobase/include/srv0srv.h 2010-12-03 17:30:41.593985184 +0900
195@@ -126,6 +126,8 @@191@@ -126,6 +126,8 @@
196 extern ulint* srv_data_file_sizes;192 extern ulint* srv_data_file_sizes;
197 extern ulint* srv_data_file_is_raw_partition;193 extern ulint* srv_data_file_is_raw_partition;
@@ -201,9 +197,8 @@
201 extern ibool srv_auto_extend_last_data_file;197 extern ibool srv_auto_extend_last_data_file;
202 extern ulint srv_last_file_size_max;198 extern ulint srv_last_file_size_max;
203 extern char** srv_log_group_home_dirs;199 extern char** srv_log_group_home_dirs;
204diff -ruN a/storage/innobase/log/log0recv.c b/storage/innobase/log/log0recv.c200--- a/storage/innobase/log/log0recv.c
205--- a/storage/innobase/log/log0recv.c 2010-12-03 15:18:48.903987466 +0900201+++ b/storage/innobase/log/log0recv.c
206+++ b/storage/innobase/log/log0recv.c 2010-12-03 17:30:41.598022536 +0900
207@@ -187,6 +187,9 @@202@@ -187,6 +187,9 @@
208 203
209 recv_sys->heap = NULL;204 recv_sys->heap = NULL;
@@ -430,9 +425,8 @@
430 if (recv_needed_recovery) {425 if (recv_needed_recovery) {
431 trx_sys_print_mysql_master_log_pos();426 trx_sys_print_mysql_master_log_pos();
432 trx_sys_print_mysql_binlog_offset();427 trx_sys_print_mysql_binlog_offset();
433diff -ruN a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c428--- a/storage/innobase/os/os0file.c
434--- a/storage/innobase/os/os0file.c 2010-12-03 15:18:48.908955759 +0900429+++ b/storage/innobase/os/os0file.c
435+++ b/storage/innobase/os/os0file.c 2010-12-03 17:30:41.602022989 +0900
436@@ -43,6 +43,7 @@430@@ -43,6 +43,7 @@
437 #include "srv0start.h"431 #include "srv0start.h"
438 #include "fil0fil.h"432 #include "fil0fil.h"
@@ -441,7 +435,7 @@
441 #ifndef UNIV_HOTBACKUP435 #ifndef UNIV_HOTBACKUP
442 # include "os0sync.h"436 # include "os0sync.h"
443 # include "os0thread.h"437 # include "os0thread.h"
444@@ -4270,6 +4271,18 @@438@@ -4271,6 +4272,18 @@
445 INFINITE);439 INFINITE);
446 }440 }
447 441
@@ -460,9 +454,8 @@
460 os_mutex_enter(array->mutex);454 os_mutex_enter(array->mutex);
461 455
462 if (srv_shutdown_state == SRV_SHUTDOWN_EXIT_THREADS456 if (srv_shutdown_state == SRV_SHUTDOWN_EXIT_THREADS
463diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c457--- a/storage/innobase/srv/srv0srv.c
464--- a/storage/innobase/srv/srv0srv.c 2010-12-03 17:30:16.339955597 +0900458+++ b/storage/innobase/srv/srv0srv.c
465+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 17:30:41.604958138 +0900
466@@ -160,6 +160,8 @@459@@ -160,6 +160,8 @@
467 /* size in database pages */460 /* size in database pages */
468 UNIV_INTERN ulint* srv_data_file_sizes = NULL;461 UNIV_INTERN ulint* srv_data_file_sizes = NULL;
@@ -472,9 +465,8 @@
472 /* if TRUE, then we auto-extend the last data file */465 /* if TRUE, then we auto-extend the last data file */
473 UNIV_INTERN ibool srv_auto_extend_last_data_file = FALSE;466 UNIV_INTERN ibool srv_auto_extend_last_data_file = FALSE;
474 /* if != 0, this tells the max size auto-extending may increase the467 /* if != 0, this tells the max size auto-extending may increase the
475diff -ruN a/storage/innobase/trx/trx0sys.c b/storage/innobase/trx/trx0sys.c468--- a/storage/innobase/trx/trx0sys.c
476--- a/storage/innobase/trx/trx0sys.c 2010-12-03 15:41:52.051986524 +0900469+++ b/storage/innobase/trx/trx0sys.c
477+++ b/storage/innobase/trx/trx0sys.c 2010-12-03 17:30:41.607026818 +0900
478@@ -567,6 +567,12 @@470@@ -567,6 +567,12 @@
479 zip_size ? zip_size : UNIV_PAGE_SIZE,471 zip_size ? zip_size : UNIV_PAGE_SIZE,
480 read_buf, NULL);472 read_buf, NULL);
481473
=== modified file 'patches/innodb_separate_doublewrite.patch'
--- patches/innodb_separate_doublewrite.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_separate_doublewrite.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2010-12-03 17:49:11.574962867 +09009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2010-12-04 15:35:58.624514033 +0900
11@@ -4291,7 +4291,8 @@10@@ -4291,7 +4291,8 @@
12 read_space_id = mach_read_from_4(11 read_space_id = mach_read_from_4(
13 frame + FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID);12 frame + FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID);
@@ -18,9 +17,8 @@
18 && trx_doublewrite_page_inside(bpage->offset)) {17 && trx_doublewrite_page_inside(bpage->offset)) {
19 18
20 ut_print_timestamp(stderr);19 ut_print_timestamp(stderr);
21diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c20--- a/storage/innobase/buf/buf0flu.c
22--- a/storage/innobase/buf/buf0flu.c 2010-12-03 15:49:59.179956111 +090021+++ b/storage/innobase/buf/buf0flu.c
23+++ b/storage/innobase/buf/buf0flu.c 2010-12-04 15:35:58.624514033 +0900
24@@ -791,7 +791,8 @@22@@ -791,7 +791,8 @@
25 write_buf = trx_doublewrite->write_buf;23 write_buf = trx_doublewrite->write_buf;
26 i = 0;24 i = 0;
@@ -50,9 +48,8 @@
50 48
51 /* We know that the writes have been flushed to disk now49 /* We know that the writes have been flushed to disk now
52 and in recovery we will find them in the doublewrite buffer50 and in recovery we will find them in the doublewrite buffer
53diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c51--- a/storage/innobase/buf/buf0rea.c
54--- a/storage/innobase/buf/buf0rea.c 2010-12-04 15:35:29.138514157 +090052+++ b/storage/innobase/buf/buf0rea.c
55+++ b/storage/innobase/buf/buf0rea.c 2010-12-04 15:35:58.626486771 +0900
56@@ -88,7 +88,9 @@53@@ -88,7 +88,9 @@
57 wake_later = mode & OS_AIO_SIMULATED_WAKE_LATER;54 wake_later = mode & OS_AIO_SIMULATED_WAKE_LATER;
58 mode = mode & ~OS_AIO_SIMULATED_WAKE_LATER;55 mode = mode & ~OS_AIO_SIMULATED_WAKE_LATER;
@@ -64,9 +61,8 @@
64 && ( (offset >= trx_doublewrite->block161 && ( (offset >= trx_doublewrite->block1
65 && offset < trx_doublewrite->block162 && offset < trx_doublewrite->block1
66 + TRX_SYS_DOUBLEWRITE_BLOCK_SIZE)63 + TRX_SYS_DOUBLEWRITE_BLOCK_SIZE)
67diff -ruN a/storage/innobase/dict/dict0load.c b/storage/innobase/dict/dict0load.c64--- a/storage/innobase/dict/dict0load.c
68--- a/storage/innobase/dict/dict0load.c 2010-12-03 17:30:16.252956569 +090065+++ b/storage/innobase/dict/dict0load.c
69+++ b/storage/innobase/dict/dict0load.c 2010-12-04 15:35:58.627482825 +0900
70@@ -41,6 +41,7 @@66@@ -41,6 +41,7 @@
71 #include "srv0start.h"67 #include "srv0start.h"
72 #include "srv0srv.h"68 #include "srv0srv.h"
@@ -102,9 +98,8 @@
102 /* The system tablespace is always available. */98 /* The system tablespace is always available. */
103 } else if (!fil_space_for_table_exists_in_mem(99 } else if (!fil_space_for_table_exists_in_mem(
104 table->space, name,100 table->space, name,
105diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c101--- a/storage/innobase/fil/fil0fil.c
106--- a/storage/innobase/fil/fil0fil.c 2010-12-04 15:35:29.143813775 +0900102+++ b/storage/innobase/fil/fil0fil.c
107+++ b/storage/innobase/fil/fil0fil.c 2010-12-04 15:35:58.628498870 +0900
108@@ -657,7 +657,7 @@103@@ -657,7 +657,7 @@
109 104
110 UT_LIST_ADD_LAST(chain, space->chain, node);105 UT_LIST_ADD_LAST(chain, space->chain, node);
@@ -312,9 +307,8 @@
312 307
313 fil_node = UT_LIST_GET_NEXT(LRU, fil_node);308 fil_node = UT_LIST_GET_NEXT(LRU, fil_node);
314 }309 }
315diff -ruN a/storage/innobase/fsp/fsp0fsp.c b/storage/innobase/fsp/fsp0fsp.c310--- a/storage/innobase/fsp/fsp0fsp.c
316--- a/storage/innobase/fsp/fsp0fsp.c 2010-11-03 07:01:13.000000000 +0900311+++ b/storage/innobase/fsp/fsp0fsp.c
317+++ b/storage/innobase/fsp/fsp0fsp.c 2010-12-04 15:35:58.632513243 +0900
318@@ -48,7 +48,7 @@312@@ -48,7 +48,7 @@
319 # include "log0log.h"313 # include "log0log.h"
320 #endif /* UNIV_HOTBACKUP */314 #endif /* UNIV_HOTBACKUP */
@@ -337,9 +331,8 @@
337 dict_ind_redundant, mtr);331 dict_ind_redundant, mtr);
338 } else {332 } else {
339 fsp_fill_free_list(TRUE, space, header, mtr);333 fsp_fill_free_list(TRUE, space, header, mtr);
340diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc334--- a/storage/innobase/handler/ha_innodb.cc
341--- a/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:35:29.153514047 +0900335+++ b/storage/innobase/handler/ha_innodb.cc
342+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-04 15:35:58.636549909 +0900
343@@ -163,6 +163,7 @@336@@ -163,6 +163,7 @@
344 static char* innobase_log_group_home_dir = NULL;337 static char* innobase_log_group_home_dir = NULL;
345 static char* innobase_file_format_name = NULL;338 static char* innobase_file_format_name = NULL;
@@ -377,9 +370,8 @@
377 MYSQL_SYSVAR(data_home_dir),370 MYSQL_SYSVAR(data_home_dir),
378 MYSQL_SYSVAR(doublewrite),371 MYSQL_SYSVAR(doublewrite),
379 MYSQL_SYSVAR(recovery_stats),372 MYSQL_SYSVAR(recovery_stats),
380diff -ruN a/storage/innobase/include/mtr0log.ic b/storage/innobase/include/mtr0log.ic373--- a/storage/innobase/include/mtr0log.ic
381--- a/storage/innobase/include/mtr0log.ic 2010-11-03 07:01:13.000000000 +0900374+++ b/storage/innobase/include/mtr0log.ic
382+++ b/storage/innobase/include/mtr0log.ic 2010-12-04 15:35:58.644607059 +0900
383@@ -27,8 +27,8 @@375@@ -27,8 +27,8 @@
384 #include "ut0lst.h"376 #include "ut0lst.h"
385 #include "buf0buf.h"377 #include "buf0buf.h"
@@ -400,9 +392,8 @@
400 && offset >= FSP_EXTENT_SIZE && offset < 3 * FSP_EXTENT_SIZE) {392 && offset >= FSP_EXTENT_SIZE && offset < 3 * FSP_EXTENT_SIZE) {
401 if (trx_doublewrite_buf_is_being_created) {393 if (trx_doublewrite_buf_is_being_created) {
402 /* Do nothing: we only come to this branch in an394 /* Do nothing: we only come to this branch in an
403diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h395--- a/storage/innobase/include/srv0srv.h
404--- a/storage/innobase/include/srv0srv.h 2010-12-04 15:35:29.177480351 +0900396+++ b/storage/innobase/include/srv0srv.h
405+++ b/storage/innobase/include/srv0srv.h 2010-12-04 15:35:58.646556250 +0900
406@@ -129,6 +129,8 @@397@@ -129,6 +129,8 @@
407 extern ulint* srv_data_file_sizes;398 extern ulint* srv_data_file_sizes;
408 extern ulint* srv_data_file_is_raw_partition;399 extern ulint* srv_data_file_is_raw_partition;
@@ -412,9 +403,8 @@
412 extern ibool srv_recovery_stats;403 extern ibool srv_recovery_stats;
413 404
414 extern ibool srv_auto_extend_last_data_file;405 extern ibool srv_auto_extend_last_data_file;
415diff -ruN a/storage/innobase/include/srv0start.h b/storage/innobase/include/srv0start.h406--- a/storage/innobase/include/srv0start.h
416--- a/storage/innobase/include/srv0start.h 2010-11-03 07:01:13.000000000 +0900407+++ b/storage/innobase/include/srv0start.h
417+++ b/storage/innobase/include/srv0start.h 2010-12-08 17:15:07.602605797 +0900
418@@ -127,4 +127,7 @@408@@ -127,4 +127,7 @@
419 /** Log 'spaces' have id's >= this */409 /** Log 'spaces' have id's >= this */
420 #define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL410 #define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL
@@ -423,9 +413,8 @@
423+#define SRV_EXTRA_SYS_SPACE_FIRST_ID 0xFFFFFFE0UL413+#define SRV_EXTRA_SYS_SPACE_FIRST_ID 0xFFFFFFE0UL
424+414+
425 #endif415 #endif
426diff -ruN a/storage/innobase/include/trx0sys.h b/storage/innobase/include/trx0sys.h416--- a/storage/innobase/include/trx0sys.h
427--- a/storage/innobase/include/trx0sys.h 2010-12-03 15:41:52.047049291 +0900417+++ b/storage/innobase/include/trx0sys.h
428+++ b/storage/innobase/include/trx0sys.h 2010-12-04 15:35:58.647551222 +0900
429@@ -125,6 +125,22 @@418@@ -125,6 +125,22 @@
430 /*=============*/419 /*=============*/
431 ulint space, /*!< in: space */420 ulint space, /*!< in: space */
@@ -472,9 +461,8 @@
472 #include "fsp0fsp.h"461 #include "fsp0fsp.h"
473 #define TRX_SYS_PAGE_NO FSP_TRX_SYS_PAGE_NO462 #define TRX_SYS_PAGE_NO FSP_TRX_SYS_PAGE_NO
474 463
475diff -ruN a/storage/innobase/include/trx0sys.ic b/storage/innobase/include/trx0sys.ic464--- a/storage/innobase/include/trx0sys.ic
476--- a/storage/innobase/include/trx0sys.ic 2010-11-03 07:01:13.000000000 +0900465+++ b/storage/innobase/include/trx0sys.ic
477+++ b/storage/innobase/include/trx0sys.ic 2010-12-04 15:35:58.649473284 +0900
478@@ -71,6 +71,40 @@466@@ -71,6 +71,40 @@
479 }467 }
480 468
@@ -516,9 +504,8 @@
516 Gets the pointer in the nth slot of the rseg array.504 Gets the pointer in the nth slot of the rseg array.
517 @return pointer to rseg object, NULL if slot not in use */505 @return pointer to rseg object, NULL if slot not in use */
518 UNIV_INLINE506 UNIV_INLINE
519diff -ruN a/storage/innobase/row/row0mysql.c b/storage/innobase/row/row0mysql.c507--- a/storage/innobase/row/row0mysql.c
520--- a/storage/innobase/row/row0mysql.c 2010-12-03 17:30:16.334989510 +0900508+++ b/storage/innobase/row/row0mysql.c
521+++ b/storage/innobase/row/row0mysql.c 2010-12-04 15:35:58.652496484 +0900
522@@ -3447,7 +3447,7 @@509@@ -3447,7 +3447,7 @@
523 /* Do not drop possible .ibd tablespace if something went510 /* Do not drop possible .ibd tablespace if something went
524 wrong: we do not want to delete valuable data of the user */511 wrong: we do not want to delete valuable data of the user */
@@ -528,9 +515,8 @@
528 if (!fil_space_for_table_exists_in_mem(space_id,515 if (!fil_space_for_table_exists_in_mem(space_id,
529 name_or_path,516 name_or_path,
530 is_temp, FALSE,517 is_temp, FALSE,
531diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c518--- a/storage/innobase/srv/srv0srv.c
532--- a/storage/innobase/srv/srv0srv.c 2010-12-04 15:35:29.180483212 +0900519+++ b/storage/innobase/srv/srv0srv.c
533+++ b/storage/innobase/srv/srv0srv.c 2010-12-04 15:35:58.656550107 +0900
534@@ -163,6 +163,8 @@520@@ -163,6 +163,8 @@
535 /* size in database pages */521 /* size in database pages */
536 UNIV_INTERN ulint* srv_data_file_sizes = NULL;522 UNIV_INTERN ulint* srv_data_file_sizes = NULL;
@@ -540,9 +526,8 @@
540 UNIV_INTERN ibool srv_recovery_stats = FALSE;526 UNIV_INTERN ibool srv_recovery_stats = FALSE;
541 527
542 /* if TRUE, then we auto-extend the last data file */528 /* if TRUE, then we auto-extend the last data file */
543diff -ruN a/storage/innobase/srv/srv0start.c b/storage/innobase/srv/srv0start.c529--- a/storage/innobase/srv/srv0start.c
544--- a/storage/innobase/srv/srv0start.c 2010-12-04 15:35:29.183481330 +0900530+++ b/storage/innobase/srv/srv0start.c
545+++ b/storage/innobase/srv/srv0start.c 2010-12-04 15:35:58.661550545 +0900
546@@ -714,6 +714,7 @@531@@ -714,6 +714,7 @@
547 /*======================*/532 /*======================*/
548 ibool* create_new_db, /*!< out: TRUE if new database should be533 ibool* create_new_db, /*!< out: TRUE if new database should be
@@ -765,9 +750,8 @@
765 }750 }
766 751
767 if (!create_new_db && sum_of_new_sizes > 0) {752 if (!create_new_db && sum_of_new_sizes > 0) {
768diff -ruN a/storage/innobase/trx/trx0sys.c b/storage/innobase/trx/trx0sys.c753--- a/storage/innobase/trx/trx0sys.c
769--- a/storage/innobase/trx/trx0sys.c 2010-12-03 17:32:15.651024019 +0900754+++ b/storage/innobase/trx/trx0sys.c
770+++ b/storage/innobase/trx/trx0sys.c 2010-12-04 15:35:58.664550291 +0900
771@@ -415,6 +415,152 @@755@@ -415,6 +415,152 @@
772 756
773 goto start_again;757 goto start_again;
774758
=== modified file 'patches/innodb_show_lock_name.patch'
--- patches/innodb_show_lock_name.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_show_lock_name.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:34:35.285040381 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:35:12.974975252 +0900
11@@ -9593,9 +9593,8 @@10@@ -9593,9 +9593,8 @@
12 rw_lock_wait_time += mutex->lspent_time;11 rw_lock_wait_time += mutex->lspent_time;
13 }12 }
@@ -58,9 +57,8 @@
58 buf2len = (uint) my_snprintf(buf2, sizeof buf2,57 buf2len = (uint) my_snprintf(buf2, sizeof buf2,
59 "os_waits=%lu",58 "os_waits=%lu",
60 (ulong) block_lock_oswait_count);59 (ulong) block_lock_oswait_count);
61diff -ruN a/storage/innobase/include/sync0rw.h b/storage/innobase/include/sync0rw.h60--- a/storage/innobase/include/sync0rw.h
62--- a/storage/innobase/include/sync0rw.h 2010-12-03 15:49:59.225953164 +090061+++ b/storage/innobase/include/sync0rw.h
63+++ b/storage/innobase/include/sync0rw.h 2010-12-03 17:35:12.978024458 +0900
64@@ -138,14 +138,14 @@62@@ -138,14 +138,14 @@
65 # ifdef UNIV_DEBUG63 # ifdef UNIV_DEBUG
66 # ifdef UNIV_SYNC_DEBUG64 # ifdef UNIV_SYNC_DEBUG
@@ -144,9 +142,8 @@
144 142
145 /******************************************************************//**143 /******************************************************************//**
146 Performance schema instrumented wrap function for rw_lock_x_lock_func()144 Performance schema instrumented wrap function for rw_lock_x_lock_func()
147diff -ruN a/storage/innobase/include/sync0rw.ic b/storage/innobase/include/sync0rw.ic145--- a/storage/innobase/include/sync0rw.ic
148--- a/storage/innobase/include/sync0rw.ic 2010-11-03 07:01:13.000000000 +0900146+++ b/storage/innobase/include/sync0rw.ic
149+++ b/storage/innobase/include/sync0rw.ic 2010-12-03 17:35:12.980024605 +0900
150@@ -640,10 +640,10 @@147@@ -640,10 +640,10 @@
151 # ifdef UNIV_SYNC_DEBUG148 # ifdef UNIV_SYNC_DEBUG
152 ulint level, /*!< in: level */149 ulint level, /*!< in: level */
@@ -175,9 +172,8 @@
175 }172 }
176 /******************************************************************//**173 /******************************************************************//**
177 Performance schema instrumented wrap function for rw_lock_x_lock_func()174 Performance schema instrumented wrap function for rw_lock_x_lock_func()
178diff -ruN a/storage/innobase/include/sync0sync.h b/storage/innobase/include/sync0sync.h175--- a/storage/innobase/include/sync0sync.h
179--- a/storage/innobase/include/sync0sync.h 2010-12-03 15:49:59.227955503 +0900176+++ b/storage/innobase/include/sync0sync.h
180+++ b/storage/innobase/include/sync0sync.h 2010-12-03 17:35:12.982023946 +0900
181@@ -158,14 +158,14 @@177@@ -158,14 +158,14 @@
182 # ifdef UNIV_DEBUG178 # ifdef UNIV_DEBUG
183 # ifdef UNIV_SYNC_DEBUG179 # ifdef UNIV_SYNC_DEBUG
@@ -270,9 +266,8 @@
270 #ifdef UNIV_PFS_MUTEX266 #ifdef UNIV_PFS_MUTEX
271 struct PSI_mutex* pfs_psi; /*!< The performance schema267 struct PSI_mutex* pfs_psi; /*!< The performance schema
272 instrumentation hook */268 instrumentation hook */
273diff -ruN a/storage/innobase/include/sync0sync.ic b/storage/innobase/include/sync0sync.ic269--- a/storage/innobase/include/sync0sync.ic
274--- a/storage/innobase/include/sync0sync.ic 2010-11-03 07:01:13.000000000 +0900270+++ b/storage/innobase/include/sync0sync.ic
275+++ b/storage/innobase/include/sync0sync.ic 2010-12-03 17:35:12.984024599 +0900
276@@ -321,13 +321,13 @@271@@ -321,13 +321,13 @@
277 mysql_pfs_key_t key, /*!< in: Performance Schema key */272 mysql_pfs_key_t key, /*!< in: Performance Schema key */
278 mutex_t* mutex, /*!< in: pointer to memory */273 mutex_t* mutex, /*!< in: pointer to memory */
@@ -307,9 +302,8 @@
307 }302 }
308 /******************************************************************//**303 /******************************************************************//**
309 NOTE! Please use the corresponding macro mutex_free(), not directly304 NOTE! Please use the corresponding macro mutex_free(), not directly
310diff -ruN a/storage/innobase/sync/sync0arr.c b/storage/innobase/sync/sync0arr.c305--- a/storage/innobase/sync/sync0arr.c
311--- a/storage/innobase/sync/sync0arr.c 2010-12-03 15:09:51.304953409 +0900306+++ b/storage/innobase/sync/sync0arr.c
312+++ b/storage/innobase/sync/sync0arr.c 2010-12-03 17:35:12.985024561 +0900
313@@ -489,13 +489,12 @@307@@ -489,13 +489,12 @@
314 mutex = cell->old_wait_mutex;308 mutex = cell->old_wait_mutex;
315 309
@@ -338,9 +332,8 @@
338 writer = rw_lock_get_writer(rwlock);332 writer = rw_lock_get_writer(rwlock);
339 if (writer != RW_LOCK_NOT_LOCKED) {333 if (writer != RW_LOCK_NOT_LOCKED) {
340 fprintf(file,334 fprintf(file,
341diff -ruN a/storage/innobase/sync/sync0rw.c b/storage/innobase/sync/sync0rw.c335--- a/storage/innobase/sync/sync0rw.c
342--- a/storage/innobase/sync/sync0rw.c 2010-11-03 07:01:13.000000000 +0900336+++ b/storage/innobase/sync/sync0rw.c
343+++ b/storage/innobase/sync/sync0rw.c 2010-12-03 17:35:12.987029059 +0900
344@@ -242,10 +242,10 @@337@@ -242,10 +242,10 @@
345 # ifdef UNIV_SYNC_DEBUG338 # ifdef UNIV_SYNC_DEBUG
346 ulint level, /*!< in: level */339 ulint level, /*!< in: level */
@@ -439,9 +432,8 @@
439 }432 }
440 433
441 /* these stats may not be accurate */434 /* these stats may not be accurate */
442diff -ruN a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c435--- a/storage/innobase/sync/sync0sync.c
443--- a/storage/innobase/sync/sync0sync.c 2010-12-03 15:49:59.233955565 +0900436+++ b/storage/innobase/sync/sync0sync.c
444+++ b/storage/innobase/sync/sync0sync.c 2010-12-03 17:35:12.989024400 +0900
445@@ -270,13 +270,13 @@437@@ -270,13 +270,13 @@
446 /*==============*/438 /*==============*/
447 mutex_t* mutex, /*!< in: pointer to memory */439 mutex_t* mutex, /*!< in: pointer to memory */
448440
=== modified file 'patches/innodb_show_status.patch'
--- patches/innodb_show_status.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_show_status.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c8--- a/storage/innobase/buf/buf0buf.c
9--- a/storage/innobase/buf/buf0buf.c 2010-11-03 07:01:13.000000000 +09009+++ b/storage/innobase/buf/buf0buf.c
10+++ b/storage/innobase/buf/buf0buf.c 2010-12-03 15:07:31.786968193 +0900
11@@ -4831,6 +4831,7 @@10@@ -4831,6 +4831,7 @@
12 }11 }
13 12
@@ -47,9 +46,8 @@
47 pool_info->free_list_len,46 pool_info->free_list_len,
48 pool_info->lru_len,47 pool_info->lru_len,
49 pool_info->old_lru_len,48 pool_info->old_lru_len,
50diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c49--- a/storage/innobase/buf/buf0flu.c
51--- a/storage/innobase/buf/buf0flu.c 2010-12-03 20:58:26.000000000 +030050+++ b/storage/innobase/buf/buf0flu.c
52+++ b/storage/innobase/buf/buf0flu.c 2011-01-07 03:37:41.000000000 +0300
53@@ -75,7 +75,7 @@51@@ -75,7 +75,7 @@
54 static buf_flush_stat_t buf_flush_stat_sum;52 static buf_flush_stat_t buf_flush_stat_sum;
55 53
@@ -59,9 +57,8 @@
59 57
60 /* @} */58 /* @} */
61 59
62diff -ruN a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c60--- a/storage/innobase/fil/fil0fil.c
63--- a/storage/innobase/fil/fil0fil.c 2010-11-03 07:01:13.000000000 +090061+++ b/storage/innobase/fil/fil0fil.c
64+++ b/storage/innobase/fil/fil0fil.c 2010-12-03 15:07:31.790357112 +0900
65@@ -4888,3 +4888,30 @@62@@ -4888,3 +4888,30 @@
66 63
67 fil_system = NULL;64 fil_system = NULL;
@@ -93,9 +90,8 @@
93+ return 0;90+ return 0;
94+ }91+ }
95+}92+}
96diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc93--- a/storage/innobase/handler/ha_innodb.cc
97--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:06:58.727955654 +090094+++ b/storage/innobase/handler/ha_innodb.cc
98+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:07:31.799376984 +0900
99@@ -603,6 +603,8 @@95@@ -603,6 +603,8 @@
100 (char*) &export_vars.innodb_buffer_pool_pages_dirty, SHOW_LONG},96 (char*) &export_vars.innodb_buffer_pool_pages_dirty, SHOW_LONG},
101 {"buffer_pool_pages_flushed",97 {"buffer_pool_pages_flushed",
@@ -140,9 +136,8 @@
140 MYSQL_SYSVAR(version),136 MYSQL_SYSVAR(version),
141 MYSQL_SYSVAR(use_sys_malloc),137 MYSQL_SYSVAR(use_sys_malloc),
142 MYSQL_SYSVAR(use_native_aio),138 MYSQL_SYSVAR(use_native_aio),
143diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h139--- a/storage/innobase/include/buf0buf.h
144--- a/storage/innobase/include/buf0buf.h 2011-01-20 07:37:08.000000000 +0900140+++ b/storage/innobase/include/buf0buf.h
145+++ b/storage/innobase/include/buf0buf.h 2011-02-14 15:25:20.859126532 +0900
146@@ -125,6 +125,7 @@141@@ -125,6 +125,7 @@
147 /* General buffer pool info */142 /* General buffer pool info */
148 ulint pool_unique_id; /*!< Buffer Pool ID */143 ulint pool_unique_id; /*!< Buffer Pool ID */
@@ -151,9 +146,8 @@
151 ulint lru_len; /*!< Length of buf_pool->LRU */146 ulint lru_len; /*!< Length of buf_pool->LRU */
152 ulint old_lru_len; /*!< buf_pool->LRU_old_len */147 ulint old_lru_len; /*!< buf_pool->LRU_old_len */
153 ulint free_list_len; /*!< Length of buf_pool->free list */148 ulint free_list_len; /*!< Length of buf_pool->free list */
154diff -ruN a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h149--- a/storage/innobase/include/fil0fil.h
155--- a/storage/innobase/include/fil0fil.h 2010-11-03 07:01:13.000000000 +0900150+++ b/storage/innobase/include/fil0fil.h
156+++ b/storage/innobase/include/fil0fil.h 2010-12-03 15:07:31.812028575 +0900
157@@ -726,6 +726,17 @@151@@ -726,6 +726,17 @@
158 /*============================*/152 /*============================*/
159 ulint id); /*!< in: space id */153 ulint id); /*!< in: space id */
@@ -172,9 +166,8 @@
172 typedef struct fil_space_struct fil_space_t;166 typedef struct fil_space_struct fil_space_t;
173 167
174 #endif168 #endif
175diff -ruN a/storage/innobase/include/read0read.h b/storage/innobase/include/read0read.h169--- a/storage/innobase/include/read0read.h
176--- a/storage/innobase/include/read0read.h 2010-12-04 02:58:26.000000000 +0900170+++ b/storage/innobase/include/read0read.h
177+++ b/storage/innobase/include/read0read.h 2011-01-21 19:35:44.127631727 +0900
178@@ -88,6 +88,7 @@171@@ -88,6 +88,7 @@
179 void172 void
180 read_view_print(173 read_view_print(
@@ -183,9 +176,8 @@
183 const read_view_t* view); /*!< in: read view */176 const read_view_t* view); /*!< in: read view */
184 /*********************************************************************//**177 /*********************************************************************//**
185 Create a consistent cursor view for mysql to be used in cursors. In this178 Create a consistent cursor view for mysql to be used in cursors. In this
186diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h179--- a/storage/innobase/include/srv0srv.h
187--- a/storage/innobase/include/srv0srv.h 2010-11-03 07:01:13.000000000 +0900180+++ b/storage/innobase/include/srv0srv.h
188+++ b/storage/innobase/include/srv0srv.h 2010-12-03 15:07:31.813958103 +0900
189@@ -142,6 +142,9 @@181@@ -142,6 +142,9 @@
190 extern char srv_adaptive_flushing;182 extern char srv_adaptive_flushing;
191 183
@@ -213,9 +205,8 @@
213 ulint innodb_buffer_pool_write_requests;/*!< srv_buf_pool_write_requests */205 ulint innodb_buffer_pool_write_requests;/*!< srv_buf_pool_write_requests */
214 ulint innodb_buffer_pool_read_ahead; /*!< srv_read_ahead */206 ulint innodb_buffer_pool_read_ahead; /*!< srv_read_ahead */
215 ulint innodb_buffer_pool_read_ahead_evicted;/*!< srv_read_ahead evicted*/207 ulint innodb_buffer_pool_read_ahead_evicted;/*!< srv_read_ahead evicted*/
216diff -ruN a/storage/innobase/lock/lock0lock.c b/storage/innobase/lock/lock0lock.c208--- a/storage/innobase/lock/lock0lock.c
217--- a/storage/innobase/lock/lock0lock.c 2010-11-03 07:01:13.000000000 +0900209+++ b/storage/innobase/lock/lock0lock.c
218+++ b/storage/innobase/lock/lock0lock.c 2010-12-03 15:07:31.819023998 +0900
219@@ -4374,6 +4374,7 @@210@@ -4374,6 +4374,7 @@
220 211
221 putc('\n', file);212 putc('\n', file);
@@ -252,9 +243,8 @@
252 " SUPPRESSING FURTHER PRINTS\n",243 " SUPPRESSING FURTHER PRINTS\n",
253 file);244 file);
254 245
255diff -ruN a/storage/innobase/read/read0read.c b/storage/innobase/read/read0read.c246--- a/storage/innobase/read/read0read.c
256--- a/storage/innobase/read/read0read.c 2010-12-04 02:58:26.000000000 +0900247+++ b/storage/innobase/read/read0read.c
257+++ b/storage/innobase/read/read0read.c 2011-01-21 19:37:08.292650181 +0900
258@@ -357,34 +357,35 @@248@@ -357,34 +357,35 @@
259 void249 void
260 read_view_print(250 read_view_print(
@@ -298,9 +288,8 @@
298 (ullint) read_view_get_nth_trx_id(view, i));288 (ullint) read_view_get_nth_trx_id(view, i));
299 }289 }
300 }290 }
301diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c291--- a/storage/innobase/srv/srv0srv.c
302--- a/storage/innobase/srv/srv0srv.c 2010-11-03 07:01:13.000000000 +0900292+++ b/storage/innobase/srv/srv0srv.c
303+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 15:07:31.824022673 +0900
304@@ -83,6 +83,7 @@293@@ -83,6 +83,7 @@
305 #include "ha_prototypes.h"294 #include "ha_prototypes.h"
306 #include "trx0i_s.h"295 #include "trx0i_s.h"
@@ -513,9 +502,8 @@
513 export_vars.innodb_buffer_pool_reads = srv_buf_pool_reads;502 export_vars.innodb_buffer_pool_reads = srv_buf_pool_reads;
514 export_vars.innodb_buffer_pool_read_ahead503 export_vars.innodb_buffer_pool_read_ahead
515 = stat.n_ra_pages_read;504 = stat.n_ra_pages_read;
516diff -ruN a/storage/innobase/sync/sync0arr.c b/storage/innobase/sync/sync0arr.c505--- a/storage/innobase/sync/sync0arr.c
517--- a/storage/innobase/sync/sync0arr.c 2010-11-03 07:01:13.000000000 +0900506+++ b/storage/innobase/sync/sync0arr.c
518+++ b/storage/innobase/sync/sync0arr.c 2010-12-03 15:07:31.826041368 +0900
519@@ -478,7 +478,7 @@507@@ -478,7 +478,7 @@
520 508
521 fprintf(file,509 fprintf(file,
@@ -525,9 +513,8 @@
525 (ulong) os_thread_pf(cell->thread),513 (ulong) os_thread_pf(cell->thread),
526 innobase_basename(cell->file), (ulong) cell->line,514 innobase_basename(cell->file), (ulong) cell->line,
527 difftime(time(NULL), cell->reservation_time));515 difftime(time(NULL), cell->reservation_time));
528diff -ruN a/storage/innobase/trx/trx0purge.c b/storage/innobase/trx/trx0purge.c516--- a/storage/innobase/trx/trx0purge.c
529--- a/storage/innobase/trx/trx0purge.c 2010-12-04 02:58:26.000000000 +0900517+++ b/storage/innobase/trx/trx0purge.c
530+++ b/storage/innobase/trx/trx0purge.c 2011-01-21 19:40:42.086683671 +0900
531@@ -1212,7 +1212,7 @@518@@ -1212,7 +1212,7 @@
532 /*=====================*/519 /*=====================*/
533 {520 {
534521
=== modified file 'patches/innodb_show_status_extend.patch'
--- patches/innodb_show_status_extend.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_show_status_extend.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2011-01-21 19:53:42.369599743 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2011-01-21 19:54:44.659599699 +0900
11@@ -638,6 +638,16 @@10@@ -638,6 +638,16 @@
12 trx_t* trx); /*!< in: transaction handle */11 trx_t* trx); /*!< in: transaction handle */
13 12
@@ -156,9 +155,8 @@
156 {NullS, NullS, SHOW_LONG}155 {NullS, NullS, SHOW_LONG}
157 };156 };
158 157
159diff -ruN a/storage/innobase/ibuf/ibuf0ibuf.c b/storage/innobase/ibuf/ibuf0ibuf.c158--- a/storage/innobase/ibuf/ibuf0ibuf.c
160--- a/storage/innobase/ibuf/ibuf0ibuf.c 2011-02-03 15:05:04.000000000 +0900159+++ b/storage/innobase/ibuf/ibuf0ibuf.c
161+++ b/storage/innobase/ibuf/ibuf0ibuf.c 2011-02-03 15:19:47.000000000 +0900
162@@ -469,6 +469,45 @@160@@ -469,6 +469,45 @@
163 }161 }
164 162
@@ -205,9 +203,8 @@
205 Updates the size information of the ibuf, assuming the segment size has not203 Updates the size information of the ibuf, assuming the segment size has not
206 changed. */204 changed. */
207 static205 static
208diff -ruN a/storage/innobase/include/ibuf0ibuf.h b/storage/innobase/include/ibuf0ibuf.h206--- a/storage/innobase/include/ibuf0ibuf.h
209--- a/storage/innobase/include/ibuf0ibuf.h 2010-12-04 02:58:26.000000000 +0900207+++ b/storage/innobase/include/ibuf0ibuf.h
210+++ b/storage/innobase/include/ibuf0ibuf.h 2011-02-03 15:19:47.000000000 +0900
211@@ -438,6 +438,22 @@208@@ -438,6 +438,22 @@
212 void209 void
213 ibuf_close(void);210 ibuf_close(void);
@@ -231,9 +228,8 @@
231 228
232 #define IBUF_HEADER_PAGE_NO FSP_IBUF_HEADER_PAGE_NO229 #define IBUF_HEADER_PAGE_NO FSP_IBUF_HEADER_PAGE_NO
233 #define IBUF_TREE_ROOT_PAGE_NO FSP_IBUF_TREE_ROOT_PAGE_NO230 #define IBUF_TREE_ROOT_PAGE_NO FSP_IBUF_TREE_ROOT_PAGE_NO
234diff -ruN a/storage/innobase/include/lock0lock.h b/storage/innobase/include/lock0lock.h231--- a/storage/innobase/include/lock0lock.h
235--- a/storage/innobase/include/lock0lock.h 2011-01-21 19:52:38.967683738 +0900232+++ b/storage/innobase/include/lock0lock.h
236+++ b/storage/innobase/include/lock0lock.h 2011-01-21 19:54:44.660599140 +0900
237@@ -816,6 +816,7 @@233@@ -816,6 +816,7 @@
238 /** The lock system struct */234 /** The lock system struct */
239 struct lock_sys_struct{235 struct lock_sys_struct{
@@ -242,9 +238,8 @@
242 };238 };
243 239
244 /** The lock system */240 /** The lock system */
245diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h241--- a/storage/innobase/include/srv0srv.h
246--- a/storage/innobase/include/srv0srv.h 2011-01-21 19:53:42.380638228 +0900242+++ b/storage/innobase/include/srv0srv.h
247+++ b/storage/innobase/include/srv0srv.h 2011-01-21 19:54:44.662600032 +0900
248@@ -731,6 +731,11 @@243@@ -731,6 +731,11 @@
249 244
250 /** Status variables to be passed to MySQL */245 /** Status variables to be passed to MySQL */
@@ -339,9 +334,8 @@
339 };334 };
340 335
341 /** Thread slot in the thread table */336 /** Thread slot in the thread table */
342diff -ruN a/storage/innobase/include/sync0sync.h b/storage/innobase/include/sync0sync.h337--- a/storage/innobase/include/sync0sync.h
343--- a/storage/innobase/include/sync0sync.h 2011-01-21 19:48:45.982637372 +0900338+++ b/storage/innobase/include/sync0sync.h
344+++ b/storage/innobase/include/sync0sync.h 2011-01-21 19:54:44.664638235 +0900
345@@ -769,6 +769,10 @@339@@ -769,6 +769,10 @@
346 340
347 #define SYNC_SPIN_ROUNDS srv_n_spin_wait_rounds341 #define SYNC_SPIN_ROUNDS srv_n_spin_wait_rounds
@@ -353,9 +347,8 @@
353 /** The number of mutex_exit calls. Intended for performance monitoring. */347 /** The number of mutex_exit calls. Intended for performance monitoring. */
354 extern ib_int64_t mutex_exit_count;348 extern ib_int64_t mutex_exit_count;
355 349
356diff -ruN a/storage/innobase/lock/lock0lock.c b/storage/innobase/lock/lock0lock.c350--- a/storage/innobase/lock/lock0lock.c
357--- a/storage/innobase/lock/lock0lock.c 2011-01-21 19:52:38.998600121 +0900351+++ b/storage/innobase/lock/lock0lock.c
358+++ b/storage/innobase/lock/lock0lock.c 2011-01-21 19:54:44.668637536 +0900
359@@ -571,6 +571,7 @@352@@ -571,6 +571,7 @@
360 lock_sys = mem_alloc(sizeof(lock_sys_t));353 lock_sys = mem_alloc(sizeof(lock_sys_t));
361 354
@@ -388,9 +381,8 @@
388 381
389 UT_LIST_REMOVE(trx_locks, trx->trx_locks, in_lock);382 UT_LIST_REMOVE(trx_locks, trx->trx_locks, in_lock);
390 }383 }
391diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c384--- a/storage/innobase/srv/srv0srv.c
392--- a/storage/innobase/srv/srv0srv.c 2011-01-21 19:53:42.390637840 +0900385+++ b/storage/innobase/srv/srv0srv.c
393+++ b/storage/innobase/srv/srv0srv.c 2011-01-21 19:54:44.673637084 +0900
394@@ -2253,12 +2253,49 @@386@@ -2253,12 +2253,49 @@
395 ulint LRU_len;387 ulint LRU_len;
396 ulint free_len;388 ulint free_len;
@@ -534,9 +526,8 @@
534 #ifdef HAVE_ATOMIC_BUILTINS526 #ifdef HAVE_ATOMIC_BUILTINS
535 export_vars.innodb_have_atomic_builtins = 1;527 export_vars.innodb_have_atomic_builtins = 1;
536 #else528 #else
537diff -ruN a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c529--- a/storage/innobase/sync/sync0sync.c
538--- a/storage/innobase/sync/sync0sync.c 2011-01-21 19:53:03.458637954 +0900530+++ b/storage/innobase/sync/sync0sync.c
539+++ b/storage/innobase/sync/sync0sync.c 2011-01-21 19:54:44.676637686 +0900
540@@ -171,13 +171,13 @@531@@ -171,13 +171,13 @@
541 532
542 /** The number of iterations in the mutex_spin_wait() spin loop.533 /** The number of iterations in the mutex_spin_wait() spin loop.
543534
=== modified file 'patches/innodb_show_sys_tables.patch'
--- patches/innodb_show_sys_tables.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_show_sys_tables.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/dict/dict0load.c b/storage/innobase/dict/dict0load.c8--- a/storage/innobase/dict/dict0load.c
9--- a/storage/innobase/dict/dict0load.c 2011-01-20 07:37:08.000000000 +09009+++ b/storage/innobase/dict/dict0load.c
10+++ b/storage/innobase/dict/dict0load.c 2011-02-14 18:59:40.774162959 +0900
11@@ -437,7 +437,7 @@10@@ -437,7 +437,7 @@
12 11
13 }12 }
@@ -38,9 +37,8 @@
38 37
39 /********************************************************************//**38 /********************************************************************//**
40 Determine the flags of a table described in SYS_TABLES.39 Determine the flags of a table described in SYS_TABLES.
41diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc40--- a/storage/innobase/handler/ha_innodb.cc
42--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:53:54.615040167 +090041+++ b/storage/innobase/handler/ha_innodb.cc
43+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 16:07:26.851357007 +0900
44@@ -11772,7 +11772,14 @@42@@ -11772,7 +11772,14 @@
45 i_s_innodb_cmp,43 i_s_innodb_cmp,
46 i_s_innodb_cmp_reset,44 i_s_innodb_cmp_reset,
@@ -57,9 +55,8 @@
57 mysql_declare_plugin_end;55 mysql_declare_plugin_end;
58 56
59 /** @brief Initialize the default value of innodb_commit_concurrency.57 /** @brief Initialize the default value of innodb_commit_concurrency.
60diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc58--- a/storage/innobase/handler/i_s.cc
61--- a/storage/innobase/handler/i_s.cc 2010-12-03 15:49:59.207956807 +090059+++ b/storage/innobase/handler/i_s.cc
62+++ b/storage/innobase/handler/i_s.cc 2010-12-03 17:10:02.719210529 +0900
63@@ -36,9 +36,11 @@60@@ -36,9 +36,11 @@
64 #include <mysql/innodb_priv.h>61 #include <mysql/innodb_priv.h>
65 62
@@ -1748,9 +1745,8 @@
1748 /***********************************************************************1745 /***********************************************************************
1749 */1746 */
1750 static ST_FIELD_INFO i_s_innodb_rseg_fields_info[] =1747 static ST_FIELD_INFO i_s_innodb_rseg_fields_info[] =
1751diff -ruN a/storage/innobase/handler/i_s.h b/storage/innobase/handler/i_s.h1748--- a/storage/innobase/handler/i_s.h
1752--- a/storage/innobase/handler/i_s.h 2010-12-03 15:37:45.540456499 +09001749+++ b/storage/innobase/handler/i_s.h
1753+++ b/storage/innobase/handler/i_s.h 2010-12-03 16:08:57.596941207 +0900
1754@@ -35,6 +35,13 @@1750@@ -35,6 +35,13 @@
1755 extern struct st_mysql_plugin i_s_innodb_cmp_reset;1751 extern struct st_mysql_plugin i_s_innodb_cmp_reset;
1756 extern struct st_mysql_plugin i_s_innodb_cmpmem;1752 extern struct st_mysql_plugin i_s_innodb_cmpmem;
17571753
=== modified file 'patches/innodb_split_buf_pool_mutex.patch'
--- patches/innodb_split_buf_pool_mutex.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_split_buf_pool_mutex.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c8--- a/storage/innobase/btr/btr0cur.c
9--- a/storage/innobase/btr/btr0cur.c 2010-11-03 07:01:13.000000000 +09009+++ b/storage/innobase/btr/btr0cur.c
10+++ b/storage/innobase/btr/btr0cur.c 2010-12-03 15:48:29.268957148 +0900
11@@ -4069,7 +4069,8 @@10@@ -4069,7 +4069,8 @@
12 11
13 mtr_commit(mtr);12 mtr_commit(mtr);
@@ -44,9 +43,8 @@
44 mutex_exit(&block->mutex);43 mutex_exit(&block->mutex);
45 }44 }
46 45
47diff -ruN a/storage/innobase/btr/btr0sea.c b/storage/innobase/btr/btr0sea.c46--- a/storage/innobase/btr/btr0sea.c
48--- a/storage/innobase/btr/btr0sea.c 2010-12-03 15:48:03.033037049 +090047+++ b/storage/innobase/btr/btr0sea.c
49+++ b/storage/innobase/btr/btr0sea.c 2010-12-03 15:48:29.271024260 +0900
50@@ -1943,7 +1943,7 @@48@@ -1943,7 +1943,7 @@
51 rec_offs_init(offsets_);49 rec_offs_init(offsets_);
52 50
@@ -93,9 +91,8 @@
93 rw_lock_x_unlock(&btr_search_latch);91 rw_lock_x_unlock(&btr_search_latch);
94 if (UNIV_LIKELY_NULL(heap)) {92 if (UNIV_LIKELY_NULL(heap)) {
95 mem_heap_free(heap);93 mem_heap_free(heap);
96diff -ruN a/storage/innobase/buf/buf0buddy.c b/storage/innobase/buf/buf0buddy.c94--- a/storage/innobase/buf/buf0buddy.c
97--- a/storage/innobase/buf/buf0buddy.c 2010-12-03 15:22:36.307986907 +090095+++ b/storage/innobase/buf/buf0buddy.c
98+++ b/storage/innobase/buf/buf0buddy.c 2010-12-03 15:48:29.275025723 +0900
99@@ -73,10 +73,11 @@96@@ -73,10 +73,11 @@
100 if (b) UNIV_MEM_VALID(b, BUF_BUDDY_LOW << i);97 if (b) UNIV_MEM_VALID(b, BUF_BUDDY_LOW << i);
101 #endif /* UNIV_DEBUG_VALGRIND */98 #endif /* UNIV_DEBUG_VALGRIND */
@@ -570,9 +567,8 @@
570 567
571 buf = bpage;568 buf = bpage;
572 UNIV_MEM_VALID(bpage, BUF_BUDDY_LOW << i);569 UNIV_MEM_VALID(bpage, BUF_BUDDY_LOW << i);
573diff -ruN a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c570--- a/storage/innobase/buf/buf0buf.c
574--- a/storage/innobase/buf/buf0buf.c 2010-12-03 15:22:36.314943336 +0900571+++ b/storage/innobase/buf/buf0buf.c
575+++ b/storage/innobase/buf/buf0buf.c 2010-12-03 15:48:29.282947357 +0900
576@@ -263,6 +263,7 @@572@@ -263,6 +263,7 @@
577 #ifdef UNIV_PFS_RWLOCK573 #ifdef UNIV_PFS_RWLOCK
578 /* Keys to register buffer block related rwlocks and mutexes with574 /* Keys to register buffer block related rwlocks and mutexes with
@@ -1965,9 +1961,8 @@
1965 1961
1966 return(len);1962 return(len);
1967 }1963 }
1968diff -ruN a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c1964--- a/storage/innobase/buf/buf0flu.c
1969--- a/storage/innobase/buf/buf0flu.c 2010-12-03 15:22:36.318955693 +09001965+++ b/storage/innobase/buf/buf0flu.c
1970+++ b/storage/innobase/buf/buf0flu.c 2010-12-03 15:48:29.289024083 +0900
1971@@ -307,7 +307,7 @@1966@@ -307,7 +307,7 @@
1972 1967
1973 ut_d(block->page.in_flush_list = TRUE);1968 ut_d(block->page.in_flush_list = TRUE);
@@ -2392,9 +2387,8 @@
2392 2387
2393 ut_a(!bpage || om >= bpage->oldest_modification);2388 ut_a(!bpage || om >= bpage->oldest_modification);
2394 }2389 }
2395diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c2390--- a/storage/innobase/buf/buf0lru.c
2396--- a/storage/innobase/buf/buf0lru.c 2010-12-03 15:22:36.321987250 +09002391+++ b/storage/innobase/buf/buf0lru.c
2397+++ b/storage/innobase/buf/buf0lru.c 2010-12-03 15:48:29.293023197 +0900
2398@@ -143,8 +143,9 @@2392@@ -143,8 +143,9 @@
2399 void2393 void
2400 buf_LRU_block_free_hashed_page(2394 buf_LRU_block_free_hashed_page(
@@ -2766,12 +2760,12 @@
2766- buf_pool_mutex_enter(buf_pool);2760- buf_pool_mutex_enter(buf_pool);
2767+ if (UT_LIST_GET_LEN(buf_pool->unzip_LRU))2761+ if (UT_LIST_GET_LEN(buf_pool->unzip_LRU))
2768+ have_LRU_mutex = TRUE;2762+ have_LRU_mutex = TRUE;
2769+
2770+ //buf_pool_mutex_enter(buf_pool);
2771+ if (have_LRU_mutex)
2772+ mutex_enter(&buf_pool->LRU_list_mutex);
2773 2763
2774- freed = buf_LRU_free_from_unzip_LRU_list(buf_pool, n_iterations);2764- freed = buf_LRU_free_from_unzip_LRU_list(buf_pool, n_iterations);
2765+ //buf_pool_mutex_enter(buf_pool);
2766+ if (have_LRU_mutex)
2767+ mutex_enter(&buf_pool->LRU_list_mutex);
2768+
2775+ freed = buf_LRU_free_from_unzip_LRU_list(buf_pool, n_iterations, have_LRU_mutex);2769+ freed = buf_LRU_free_from_unzip_LRU_list(buf_pool, n_iterations, have_LRU_mutex);
2776 2770
2777 if (!freed) {2771 if (!freed) {
@@ -3330,9 +3324,8 @@
3330 }3324 }
3331 3325
3332 /**********************************************************************//**3326 /**********************************************************************//**
3333diff -ruN a/storage/innobase/buf/buf0rea.c b/storage/innobase/buf/buf0rea.c3327--- a/storage/innobase/buf/buf0rea.c
3334--- a/storage/innobase/buf/buf0rea.c 2010-12-03 15:22:36.323977308 +09003328+++ b/storage/innobase/buf/buf0rea.c
3335+++ b/storage/innobase/buf/buf0rea.c 2010-12-03 15:48:29.296024468 +0900
3336@@ -311,6 +311,7 @@3329@@ -311,6 +311,7 @@
3337 3330
3338 return(0);3331 return(0);
@@ -3379,9 +3372,8 @@
3379 3372
3380 if ((offset == low) && (succ_offset == offset + 1)) {3373 if ((offset == low) && (succ_offset == offset + 1)) {
3381 3374
3382diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc3375--- a/storage/innobase/handler/ha_innodb.cc
3383--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:48:03.048955897 +09003376+++ b/storage/innobase/handler/ha_innodb.cc
3384+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:48:29.304024564 +0900
3385@@ -264,6 +264,10 @@3377@@ -264,6 +264,10 @@
3386 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */3378 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */
3387 {&buf_pool_mutex_key, "buf_pool_mutex", 0},3379 {&buf_pool_mutex_key, "buf_pool_mutex", 0},
@@ -3401,9 +3393,8 @@
3401 # ifndef PFS_SKIP_BUFFER_MUTEX_RWLOCK3393 # ifndef PFS_SKIP_BUFFER_MUTEX_RWLOCK
3402 {&buf_block_lock_key, "buf_block_lock", 0},3394 {&buf_block_lock_key, "buf_block_lock", 0},
3403 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */3395 # endif /* !PFS_SKIP_BUFFER_MUTEX_RWLOCK */
3404diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc3396--- a/storage/innobase/handler/i_s.cc
3405--- a/storage/innobase/handler/i_s.cc 2010-12-03 15:37:45.517105700 +09003397+++ b/storage/innobase/handler/i_s.cc
3406+++ b/storage/innobase/handler/i_s.cc 2010-12-03 15:48:29.331024462 +0900
3407@@ -1563,7 +1563,8 @@3398@@ -1563,7 +1563,8 @@
3408 3399
3409 buf_pool = buf_pool_from_array(i);3400 buf_pool = buf_pool_from_array(i);
@@ -3424,9 +3415,8 @@
3424 3415
3425 if (status) {3416 if (status) {
3426 break;3417 break;
3427diff -ruN a/storage/innobase/ibuf/ibuf0ibuf.c b/storage/innobase/ibuf/ibuf0ibuf.c3418--- a/storage/innobase/ibuf/ibuf0ibuf.c
3428--- a/storage/innobase/ibuf/ibuf0ibuf.c 2010-12-03 15:48:03.068954202 +09003419+++ b/storage/innobase/ibuf/ibuf0ibuf.c
3429+++ b/storage/innobase/ibuf/ibuf0ibuf.c 2010-12-03 15:48:29.335988682 +0900
3430@@ -3821,9 +3821,11 @@3420@@ -3821,9 +3821,11 @@
3431 ulint fold = buf_page_address_fold(space, page_no);3421 ulint fold = buf_page_address_fold(space, page_no);
3432 buf_pool_t* buf_pool = buf_pool_get(space, page_no);3422 buf_pool_t* buf_pool = buf_pool_get(space, page_no);
@@ -3441,9 +3431,8 @@
3441 3431
3442 if (UNIV_LIKELY_NULL(bpage)) {3432 if (UNIV_LIKELY_NULL(bpage)) {
3443 /* A buffer pool watch has been set or the3433 /* A buffer pool watch has been set or the
3444diff -ruN a/storage/innobase/include/buf0buddy.h b/storage/innobase/include/buf0buddy.h3434--- a/storage/innobase/include/buf0buddy.h
3445--- a/storage/innobase/include/buf0buddy.h 2010-11-03 07:01:13.000000000 +09003435+++ b/storage/innobase/include/buf0buddy.h
3446+++ b/storage/innobase/include/buf0buddy.h 2010-12-03 15:48:29.338023826 +0900
3447@@ -51,10 +51,11 @@3436@@ -51,10 +51,11 @@
3448 buf_pool_t* buf_pool,3437 buf_pool_t* buf_pool,
3449 /*!< buffer pool in which the block resides */3438 /*!< buffer pool in which the block resides */
@@ -3467,9 +3456,8 @@
3467 __attribute__((nonnull));3456 __attribute__((nonnull));
3468 3457
3469 #ifndef UNIV_NONINL3458 #ifndef UNIV_NONINL
3470diff -ruN a/storage/innobase/include/buf0buddy.ic b/storage/innobase/include/buf0buddy.ic3459--- a/storage/innobase/include/buf0buddy.ic
3471--- a/storage/innobase/include/buf0buddy.ic 2010-11-03 07:01:13.000000000 +09003460+++ b/storage/innobase/include/buf0buddy.ic
3472+++ b/storage/innobase/include/buf0buddy.ic 2010-12-03 15:48:29.339040413 +0900
3473@@ -46,10 +46,11 @@3461@@ -46,10 +46,11 @@
3474 /*!< in: buffer pool in which the page resides */3462 /*!< in: buffer pool in which the page resides */
3475 ulint i, /*!< in: index of buf_pool->zip_free[],3463 ulint i, /*!< in: index of buf_pool->zip_free[],
@@ -3544,9 +3532,8 @@
3544 }3532 }
3545 3533
3546 #ifdef UNIV_MATERIALIZE3534 #ifdef UNIV_MATERIALIZE
3547diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h3535--- a/storage/innobase/include/buf0buf.h
3548--- a/storage/innobase/include/buf0buf.h 2010-12-03 15:22:36.327954660 +09003536+++ b/storage/innobase/include/buf0buf.h
3549+++ b/storage/innobase/include/buf0buf.h 2010-12-03 15:48:29.343024683 +0900
3550@@ -205,6 +205,20 @@3537@@ -205,6 +205,20 @@
3551 /*==========================*/3538 /*==========================*/
3552 3539
@@ -3640,9 +3627,8 @@
3640 mutex_enter(&b->mutex); \3627 mutex_enter(&b->mutex); \
3641 } while (0)3628 } while (0)
3642 3629
3643diff -ruN a/storage/innobase/include/buf0buf.ic b/storage/innobase/include/buf0buf.ic3630--- a/storage/innobase/include/buf0buf.ic
3644--- a/storage/innobase/include/buf0buf.ic 2010-11-03 07:01:13.000000000 +09003631+++ b/storage/innobase/include/buf0buf.ic
3645+++ b/storage/innobase/include/buf0buf.ic 2010-12-03 15:48:29.345024524 +0900
3646@@ -274,7 +274,7 @@3632@@ -274,7 +274,7 @@
3647 case BUF_BLOCK_ZIP_FREE:3633 case BUF_BLOCK_ZIP_FREE:
3648 /* This is a free page in buf_pool->zip_free[].3634 /* This is a free page in buf_pool->zip_free[].
@@ -3887,9 +3873,8 @@
3887+ }3873+ }
3888+}3874+}
3889 #endif /* !UNIV_HOTBACKUP */3875 #endif /* !UNIV_HOTBACKUP */
3890diff -ruN a/storage/innobase/include/buf0lru.h b/storage/innobase/include/buf0lru.h3876--- a/storage/innobase/include/buf0lru.h
3891--- a/storage/innobase/include/buf0lru.h 2010-11-03 07:01:13.000000000 +09003877+++ b/storage/innobase/include/buf0lru.h
3892+++ b/storage/innobase/include/buf0lru.h 2010-12-03 15:48:29.349024701 +0900
3893@@ -111,8 +111,9 @@3878@@ -111,8 +111,9 @@
3894 buf_LRU_free_block(3879 buf_LRU_free_block(
3895 /*===============*/3880 /*===============*/
@@ -3911,9 +3896,8 @@
3911 /******************************************************************//**3896 /******************************************************************//**
3912 Adds a block to the LRU list. */3897 Adds a block to the LRU list. */
3913 UNIV_INTERN3898 UNIV_INTERN
3914diff -ruN a/storage/innobase/include/sync0rw.h b/storage/innobase/include/sync0rw.h3899--- a/storage/innobase/include/sync0rw.h
3915--- a/storage/innobase/include/sync0rw.h 2010-11-03 07:01:13.000000000 +09003900+++ b/storage/innobase/include/sync0rw.h
3916+++ b/storage/innobase/include/sync0rw.h 2010-12-03 15:48:29.349942993 +0900
3917@@ -112,6 +112,7 @@3901@@ -112,6 +112,7 @@
3918 extern mysql_pfs_key_t archive_lock_key;3902 extern mysql_pfs_key_t archive_lock_key;
3919 # endif /* UNIV_LOG_ARCHIVE */3903 # endif /* UNIV_LOG_ARCHIVE */
@@ -3922,9 +3906,8 @@
3922 extern mysql_pfs_key_t buf_block_lock_key;3906 extern mysql_pfs_key_t buf_block_lock_key;
3923 # ifdef UNIV_SYNC_DEBUG3907 # ifdef UNIV_SYNC_DEBUG
3924 extern mysql_pfs_key_t buf_block_debug_latch_key;3908 extern mysql_pfs_key_t buf_block_debug_latch_key;
3925diff -ruN a/storage/innobase/include/sync0sync.h b/storage/innobase/include/sync0sync.h3909--- a/storage/innobase/include/sync0sync.h
3926--- a/storage/innobase/include/sync0sync.h 2010-11-03 07:01:13.000000000 +09003910+++ b/storage/innobase/include/sync0sync.h
3927+++ b/storage/innobase/include/sync0sync.h 2010-12-03 15:48:29.352024614 +0900
3928@@ -75,6 +75,10 @@3911@@ -75,6 +75,10 @@
3929 extern mysql_pfs_key_t buffer_block_mutex_key;3912 extern mysql_pfs_key_t buffer_block_mutex_key;
3930 extern mysql_pfs_key_t buf_pool_mutex_key;3913 extern mysql_pfs_key_t buf_pool_mutex_key;
@@ -3969,9 +3952,8 @@
3969 may be) threads waiting in the global wait3952 may be) threads waiting in the global wait
3970 array for this mutex to be released.3953 array for this mutex to be released.
3971 Otherwise, this is 0. */3954 Otherwise, this is 0. */
3972diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c3955--- a/storage/innobase/srv/srv0srv.c
3973--- a/storage/innobase/srv/srv0srv.c 2010-12-03 15:48:03.080956216 +09003956+++ b/storage/innobase/srv/srv0srv.c
3974+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 15:48:29.355023766 +0900
3975@@ -3098,7 +3098,7 @@3957@@ -3098,7 +3098,7 @@
3976 level += log_sys->max_checkpoint_age3958 level += log_sys->max_checkpoint_age
3977 - (lsn - oldest_modification);3959 - (lsn - oldest_modification);
@@ -3990,9 +3972,8 @@
3990 new_blocks_num++;3972 new_blocks_num++;
3991 }3973 }
3992 if (!found) {3974 if (!found) {
3993diff -ruN a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c3975--- a/storage/innobase/sync/sync0sync.c
3994--- a/storage/innobase/sync/sync0sync.c 2010-11-03 07:01:13.000000000 +09003976+++ b/storage/innobase/sync/sync0sync.c
3995+++ b/storage/innobase/sync/sync0sync.c 2010-12-03 15:48:29.358023890 +0900
3996@@ -285,7 +285,7 @@3977@@ -285,7 +285,7 @@
3997 mutex->lock_word = 0;3978 mutex->lock_word = 0;
3998 #endif3979 #endif
39993980
=== modified file 'patches/innodb_stats.patch'
--- patches/innodb_stats.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_stats.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/dict/dict0boot.c b/storage/innobase/dict/dict0boot.c8--- a/storage/innobase/dict/dict0boot.c
9--- a/storage/innobase/dict/dict0boot.c 2010-12-03 15:48:03.034036843 +09009+++ b/storage/innobase/dict/dict0boot.c
10+++ b/storage/innobase/dict/dict0boot.c 2010-12-03 17:19:24.835112632 +0900
11@@ -266,6 +266,29 @@10@@ -266,6 +266,29 @@
12 /* Get the dictionary header */11 /* Get the dictionary header */
13 dict_hdr = dict_hdr_get(&mtr);12 dict_hdr = dict_hdr_get(&mtr);
@@ -101,9 +100,8 @@
101 100
102 mutex_exit(&(dict_sys->mutex));101 mutex_exit(&(dict_sys->mutex));
103 }102 }
104diff -ruN a/storage/innobase/dict/dict0crea.c b/storage/innobase/dict/dict0crea.c103--- a/storage/innobase/dict/dict0crea.c
105--- a/storage/innobase/dict/dict0crea.c 2010-12-03 15:48:03.036081059 +0900104+++ b/storage/innobase/dict/dict0crea.c
106+++ b/storage/innobase/dict/dict0crea.c 2010-12-03 17:19:24.836964976 +0900
107@@ -508,6 +508,56 @@105@@ -508,6 +508,56 @@
108 }106 }
109 107
@@ -280,16 +278,10 @@
280 }278 }
281 279
282 if (node->state == INDEX_CREATE_INDEX_TREE) {280 if (node->state == INDEX_CREATE_INDEX_TREE) {
283@@ -1178,6 +1317,66 @@281@@ -1184,6 +1323,66 @@
284 return(NULL);282 }
285 }
286 283
287+ thr->run_node = que_node_get_parent(node);284 /****************************************************************//**
288+
289+ return(thr);
290+}
291+
292+/****************************************************************//**
293+*/285+*/
294+UNIV_INTERN286+UNIV_INTERN
295+que_thr_t*287+que_thr_t*
@@ -344,12 +336,17 @@
344+ return(NULL);336+ return(NULL);
345+ }337+ }
346+338+
347 thr->run_node = que_node_get_parent(node);339+ thr->run_node = que_node_get_parent(node);
348 340+
349 return(thr);341+ return(thr);
350diff -ruN a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c342+}
351--- a/storage/innobase/dict/dict0dict.c 2010-12-03 15:48:03.040222428 +0900343+
352+++ b/storage/innobase/dict/dict0dict.c 2010-12-03 17:19:24.841947690 +0900344+/****************************************************************//**
345 Creates the foreign key constraints system tables inside InnoDB
346 at database creation or database start if they are not found or are
347 not of the right form.
348--- a/storage/innobase/dict/dict0dict.c
349+++ b/storage/innobase/dict/dict0dict.c
353@@ -755,7 +755,7 @@350@@ -755,7 +755,7 @@
354 print an error message and return without doing351 print an error message and return without doing
355 anything. */352 anything. */
@@ -797,9 +794,8 @@
797 794
798 dict_table_stats_lock(table, RW_S_LATCH);795 dict_table_stats_lock(table, RW_S_LATCH);
799 796
800diff -ruN a/storage/innobase/dict/dict0load.c b/storage/innobase/dict/dict0load.c797--- a/storage/innobase/dict/dict0load.c
801--- a/storage/innobase/dict/dict0load.c 2010-11-03 07:01:13.000000000 +0900798+++ b/storage/innobase/dict/dict0load.c
802+++ b/storage/innobase/dict/dict0load.c 2010-12-03 17:19:24.845947460 +0900
803@@ -50,7 +50,8 @@799@@ -50,7 +50,8 @@
804 "SYS_COLUMNS",800 "SYS_COLUMNS",
805 "SYS_FIELDS",801 "SYS_FIELDS",
@@ -901,9 +897,8 @@
901 Determine the flags of a table described in SYS_TABLES.897 Determine the flags of a table described in SYS_TABLES.
902 @return compressed page size in kilobytes; or 0 if the tablespace is898 @return compressed page size in kilobytes; or 0 if the tablespace is
903 uncompressed, ULINT_UNDEFINED on error */899 uncompressed, ULINT_UNDEFINED on error */
904diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc900--- a/storage/innobase/handler/ha_innodb.cc
905--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:17:03.665960357 +0900901+++ b/storage/innobase/handler/ha_innodb.cc
906+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 17:22:21.586939783 +0900
907@@ -187,6 +187,7 @@902@@ -187,6 +187,7 @@
908 static my_bool innobase_rollback_on_timeout = FALSE;903 static my_bool innobase_rollback_on_timeout = FALSE;
909 static my_bool innobase_create_status_file = FALSE;904 static my_bool innobase_create_status_file = FALSE;
@@ -1073,9 +1068,8 @@
1073 mysql_declare_plugin_end;1068 mysql_declare_plugin_end;
1074 1069
1075 /** @brief Initialize the default value of innodb_commit_concurrency.1070 /** @brief Initialize the default value of innodb_commit_concurrency.
1076diff -ruN a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc1071--- a/storage/innobase/handler/i_s.cc
1077--- a/storage/innobase/handler/i_s.cc 2010-12-03 17:17:03.666956117 +09001072+++ b/storage/innobase/handler/i_s.cc
1078+++ b/storage/innobase/handler/i_s.cc 2010-12-03 17:19:24.880964526 +0900
1079@@ -49,6 +49,7 @@1073@@ -49,6 +49,7 @@
1080 #include "trx0trx.h" /* for TRX_QUE_STATE_STR_MAX_LEN */1074 #include "trx0trx.h" /* for TRX_QUE_STATE_STR_MAX_LEN */
1081 #include "trx0rseg.h" /* for trx_rseg_struct */1075 #include "trx0rseg.h" /* for trx_rseg_struct */
@@ -1654,9 +1648,8 @@
1654+ STRUCT_FLD(system_vars, NULL),1648+ STRUCT_FLD(system_vars, NULL),
1655+ STRUCT_FLD(__reserved1, NULL)1649+ STRUCT_FLD(__reserved1, NULL)
1656+};1650+};
1657diff -ruN a/storage/innobase/handler/i_s.h b/storage/innobase/handler/i_s.h1651--- a/storage/innobase/handler/i_s.h
1658--- a/storage/innobase/handler/i_s.h 2010-12-03 17:17:03.668953884 +09001652+++ b/storage/innobase/handler/i_s.h
1659+++ b/storage/innobase/handler/i_s.h 2010-12-03 17:19:24.882947826 +0900
1660@@ -43,5 +43,8 @@1653@@ -43,5 +43,8 @@
1661 extern struct st_mysql_plugin i_s_innodb_sys_foreign;1654 extern struct st_mysql_plugin i_s_innodb_sys_foreign;
1662 extern struct st_mysql_plugin i_s_innodb_sys_foreign_cols;1655 extern struct st_mysql_plugin i_s_innodb_sys_foreign_cols;
@@ -1666,9 +1659,8 @@
1666+extern struct st_mysql_plugin i_s_innodb_index_stats;1659+extern struct st_mysql_plugin i_s_innodb_index_stats;
1667 1660
1668 #endif /* i_s_h */1661 #endif /* i_s_h */
1669diff -ruN a/storage/innobase/include/dict0boot.h b/storage/innobase/include/dict0boot.h1662--- a/storage/innobase/include/dict0boot.h
1670--- a/storage/innobase/include/dict0boot.h 2010-11-03 07:01:13.000000000 +09001663+++ b/storage/innobase/include/dict0boot.h
1671+++ b/storage/innobase/include/dict0boot.h 2010-12-03 17:19:24.885947372 +0900
1672@@ -104,6 +104,7 @@1664@@ -104,6 +104,7 @@
1673 #define DICT_COLUMNS_ID 21665 #define DICT_COLUMNS_ID 2
1674 #define DICT_INDEXES_ID 31666 #define DICT_INDEXES_ID 3
@@ -1708,9 +1700,8 @@
1708 #ifndef UNIV_NONINL1700 #ifndef UNIV_NONINL
1709 #include "dict0boot.ic"1701 #include "dict0boot.ic"
1710 #endif1702 #endif
1711diff -ruN a/storage/innobase/include/dict0crea.h b/storage/innobase/include/dict0crea.h1703--- a/storage/innobase/include/dict0crea.h
1712--- a/storage/innobase/include/dict0crea.h 2010-11-03 07:01:13.000000000 +09001704+++ b/storage/innobase/include/dict0crea.h
1713+++ b/storage/innobase/include/dict0crea.h 2010-12-03 17:19:24.886949643 +0900
1714@@ -53,6 +53,14 @@1705@@ -53,6 +53,14 @@
1715 dict_index_t* index, /*!< in: index to create, built as a memory data1706 dict_index_t* index, /*!< in: index to create, built as a memory data
1716 structure */1707 structure */
@@ -1764,9 +1755,8 @@
1764 1755
1765 #ifndef UNIV_NONINL1756 #ifndef UNIV_NONINL
1766 #include "dict0crea.ic"1757 #include "dict0crea.ic"
1767diff -ruN a/storage/innobase/include/dict0dict.h b/storage/innobase/include/dict0dict.h1758--- a/storage/innobase/include/dict0dict.h
1768--- a/storage/innobase/include/dict0dict.h 2010-12-03 15:48:03.073024387 +09001759+++ b/storage/innobase/include/dict0dict.h
1769+++ b/storage/innobase/include/dict0dict.h 2010-12-03 17:19:24.888965622 +0900
1770@@ -1096,10 +1096,18 @@1760@@ -1096,10 +1096,18 @@
1771 dict_update_statistics(1761 dict_update_statistics(
1772 /*===================*/1762 /*===================*/
@@ -1795,9 +1785,8 @@
1795 };1785 };
1796 #endif /* !UNIV_HOTBACKUP */1786 #endif /* !UNIV_HOTBACKUP */
1797 1787
1798diff -ruN a/storage/innobase/include/dict0load.h b/storage/innobase/include/dict0load.h1788--- a/storage/innobase/include/dict0load.h
1799--- a/storage/innobase/include/dict0load.h 2010-11-03 07:01:13.000000000 +09001789+++ b/storage/innobase/include/dict0load.h
1800+++ b/storage/innobase/include/dict0load.h 2010-12-03 17:19:24.889947481 +0900
1801@@ -41,6 +41,7 @@1790@@ -41,6 +41,7 @@
1802 SYS_FIELDS,1791 SYS_FIELDS,
1803 SYS_FOREIGN,1792 SYS_FOREIGN,
@@ -1827,9 +1816,8 @@
1827 #ifndef UNIV_NONINL1816 #ifndef UNIV_NONINL
1828 #include "dict0load.ic"1817 #include "dict0load.ic"
1829 #endif1818 #endif
1830diff -ruN a/storage/innobase/include/que0que.h b/storage/innobase/include/que0que.h1819--- a/storage/innobase/include/que0que.h
1831--- a/storage/innobase/include/que0que.h 2010-11-03 07:01:13.000000000 +09001820+++ b/storage/innobase/include/que0que.h
1832+++ b/storage/innobase/include/que0que.h 2010-12-03 17:19:24.892947946 +0900
1833@@ -492,6 +492,8 @@1821@@ -492,6 +492,8 @@
1834 #define QUE_NODE_CALL 311822 #define QUE_NODE_CALL 31
1835 #define QUE_NODE_EXIT 321823 #define QUE_NODE_EXIT 32
@@ -1839,9 +1827,8 @@
1839 /* Query thread states */1827 /* Query thread states */
1840 #define QUE_THR_RUNNING 11828 #define QUE_THR_RUNNING 1
1841 #define QUE_THR_PROCEDURE_WAIT 21829 #define QUE_THR_PROCEDURE_WAIT 2
1842diff -ruN a/storage/innobase/include/row0mysql.h b/storage/innobase/include/row0mysql.h1830--- a/storage/innobase/include/row0mysql.h
1843--- a/storage/innobase/include/row0mysql.h 2010-11-03 07:01:13.000000000 +09001831+++ b/storage/innobase/include/row0mysql.h
1844+++ b/storage/innobase/include/row0mysql.h 2010-12-03 17:19:24.904973020 +0900
1845@@ -387,6 +387,22 @@1832@@ -387,6 +387,22 @@
1846 then checked for not being too1833 then checked for not being too
1847 large. */1834 large. */
@@ -1865,9 +1852,8 @@
1865 Scans a table create SQL string and adds to the data dictionary1852 Scans a table create SQL string and adds to the data dictionary
1866 the foreign key constraints declared in the string. This function1853 the foreign key constraints declared in the string. This function
1867 should be called after the indexes for a table have been created.1854 should be called after the indexes for a table have been created.
1868diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h1855--- a/storage/innobase/include/srv0srv.h
1869--- a/storage/innobase/include/srv0srv.h 2010-12-03 15:53:54.622036720 +09001856+++ b/storage/innobase/include/srv0srv.h
1870+++ b/storage/innobase/include/srv0srv.h 2010-12-03 17:19:24.906953188 +0900
1871@@ -211,6 +211,9 @@1857@@ -211,6 +211,9 @@
1872 extern ibool srv_innodb_status;1858 extern ibool srv_innodb_status;
1873 1859
@@ -1878,9 +1864,8 @@
1878 1864
1879 extern ibool srv_use_doublewrite_buf;1865 extern ibool srv_use_doublewrite_buf;
1880 extern ibool srv_use_checksums;1866 extern ibool srv_use_checksums;
1881diff -ruN a/storage/innobase/que/que0que.c b/storage/innobase/que/que0que.c1867--- a/storage/innobase/que/que0que.c
1882--- a/storage/innobase/que/que0que.c 2010-11-03 07:01:13.000000000 +09001868+++ b/storage/innobase/que/que0que.c
1883+++ b/storage/innobase/que/que0que.c 2010-12-03 17:19:24.910953422 +0900
1884@@ -621,11 +621,21 @@1869@@ -621,11 +621,21 @@
1885 1870
1886 que_graph_free_recursive(cre_ind->ind_def);1871 que_graph_free_recursive(cre_ind->ind_def);
@@ -1921,9 +1906,8 @@
1921 } else if (type == QUE_NODE_ROW_PRINTF) {1906 } else if (type == QUE_NODE_ROW_PRINTF) {
1922 thr = row_printf_step(thr);1907 thr = row_printf_step(thr);
1923 } else {1908 } else {
1924diff -ruN a/storage/innobase/row/row0ins.c b/storage/innobase/row/row0ins.c1909--- a/storage/innobase/row/row0ins.c
1925--- a/storage/innobase/row/row0ins.c 2011-03-10 00:11:38.000000000 +09001910+++ b/storage/innobase/row/row0ins.c
1926+++ b/storage/innobase/row/row0ins.c 2011-03-30 11:44:58.000000000 +0900
1927@@ -2012,6 +2012,8 @@1911@@ -2012,6 +2012,8 @@
1928 }1912 }
1929 1913
@@ -1933,9 +1917,8 @@
1933 {1917 {
1934 page_t* page = btr_cur_get_page(&cursor);1918 page_t* page = btr_cur_get_page(&cursor);
1935 rec_t* first_rec = page_rec_get_next(1919 rec_t* first_rec = page_rec_get_next(
1936diff -ruN a/storage/innobase/row/row0merge.c b/storage/innobase/row/row0merge.c1920--- a/storage/innobase/row/row0merge.c
1937--- a/storage/innobase/row/row0merge.c 2010-11-03 07:01:13.000000000 +09001921+++ b/storage/innobase/row/row0merge.c
1938+++ b/storage/innobase/row/row0merge.c 2010-12-03 17:19:24.914955391 +0900
1939@@ -2019,6 +2019,8 @@1922@@ -2019,6 +2019,8 @@
1940 "UPDATE SYS_INDEXES SET NAME=CONCAT('"1923 "UPDATE SYS_INDEXES SET NAME=CONCAT('"
1941 TEMP_INDEX_PREFIX_STR "', NAME) WHERE ID = :indexid;\n"1924 TEMP_INDEX_PREFIX_STR "', NAME) WHERE ID = :indexid;\n"
@@ -1945,9 +1928,8 @@
1945 /* Drop the field definitions of the index. */1928 /* Drop the field definitions of the index. */
1946 "DELETE FROM SYS_FIELDS WHERE INDEX_ID = :indexid;\n"1929 "DELETE FROM SYS_FIELDS WHERE INDEX_ID = :indexid;\n"
1947 /* Drop the index definition and the B-tree. */1930 /* Drop the index definition and the B-tree. */
1948diff -ruN a/storage/innobase/row/row0mysql.c b/storage/innobase/row/row0mysql.c1931--- a/storage/innobase/row/row0mysql.c
1949--- a/storage/innobase/row/row0mysql.c 2010-11-03 07:01:13.000000000 +09001932+++ b/storage/innobase/row/row0mysql.c
1950+++ b/storage/innobase/row/row0mysql.c 2010-12-03 17:19:24.918953476 +0900
1951@@ -921,6 +921,9 @@1933@@ -921,6 +921,9 @@
1952 1934
1953 table->stat_modified_counter = counter + 1;1935 table->stat_modified_counter = counter + 1;
@@ -2057,9 +2039,8 @@
2057 " DELETE FROM SYS_FIELDS\n"2039 " DELETE FROM SYS_FIELDS\n"
2058 " WHERE INDEX_ID = index_id;\n"2040 " WHERE INDEX_ID = index_id;\n"
2059 " DELETE FROM SYS_INDEXES\n"2041 " DELETE FROM SYS_INDEXES\n"
2060diff -ruN a/storage/innobase/row/row0row.c b/storage/innobase/row/row0row.c2042--- a/storage/innobase/row/row0row.c
2061--- a/storage/innobase/row/row0row.c 2011-03-10 00:11:38.000000000 +09002043+++ b/storage/innobase/row/row0row.c
2062+++ b/storage/innobase/row/row0row.c 2011-03-30 11:44:58.000000000 +0900
2063@@ -347,6 +347,14 @@2044@@ -347,6 +347,14 @@
2064 2045
2065 rec_len = rec_offs_n_fields(offsets);2046 rec_len = rec_offs_n_fields(offsets);
@@ -2090,9 +2071,8 @@
2090 field = rec_get_nth_field(rec, offsets, i, &len);2071 field = rec_get_nth_field(rec, offsets, i, &len);
2091 2072
2092 dfield_set_data(dfield, field, len);2073 dfield_set_data(dfield, field, len);
2093diff -ruN a/storage/innobase/row/row0upd.c b/storage/innobase/row/row0upd.c2074--- a/storage/innobase/row/row0upd.c
2094--- a/storage/innobase/row/row0upd.c 2011-03-10 00:11:38.000000000 +09002075+++ b/storage/innobase/row/row0upd.c
2095+++ b/storage/innobase/row/row0upd.c 2011-03-30 11:44:58.000000000 +0900
2096@@ -439,6 +439,12 @@2076@@ -439,6 +439,12 @@
2097 0);2077 0);
2098 }2078 }
@@ -2125,9 +2105,8 @@
2125 data = rec_get_nth_field(rec, offsets, i, &len);2105 data = rec_get_nth_field(rec, offsets, i, &len);
2126 2106
2127 dfield = dtuple_get_nth_field(entry, i);2107 dfield = dtuple_get_nth_field(entry, i);
2128diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c2108--- a/storage/innobase/srv/srv0srv.c
2129--- a/storage/innobase/srv/srv0srv.c 2010-12-03 15:53:54.625288512 +09002109+++ b/storage/innobase/srv/srv0srv.c
2130+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 17:19:24.922953561 +0900
2131@@ -398,6 +398,9 @@2110@@ -398,6 +398,9 @@
2132 /* When estimating number of different key values in an index, sample2111 /* When estimating number of different key values in an index, sample
2133 this many index pages */2112 this many index pages */
@@ -2138,9 +2117,8 @@
2138 2117
2139 UNIV_INTERN ibool srv_use_doublewrite_buf = TRUE;2118 UNIV_INTERN ibool srv_use_doublewrite_buf = TRUE;
2140 UNIV_INTERN ibool srv_use_checksums = TRUE;2119 UNIV_INTERN ibool srv_use_checksums = TRUE;
2141diff -ruN a/storage/innobase/trx/trx0rec.c b/storage/innobase/trx/trx0rec.c2120--- a/storage/innobase/trx/trx0rec.c
2142--- a/storage/innobase/trx/trx0rec.c 2011-03-10 00:11:38.000000000 +09002121+++ b/storage/innobase/trx/trx0rec.c
2143+++ b/storage/innobase/trx/trx0rec.c 2011-03-30 11:44:58.000000000 +0900
2144@@ -665,14 +665,27 @@2122@@ -665,14 +665,27 @@
2145 /* Save to the undo log the old values of the columns to be updated. */2123 /* Save to the undo log the old values of the columns to be updated. */
2146 2124
21472125
=== modified file 'patches/innodb_thread_concurrency_timer_based.patch'
--- patches/innodb_thread_concurrency_timer_based.patch 2011-07-22 16:56:42 +0000
+++ patches/innodb_thread_concurrency_timer_based.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc8--- a/storage/innobase/handler/ha_innodb.cc
9--- a/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:41:52.045404706 +09009+++ b/storage/innobase/handler/ha_innodb.cc
10+++ b/storage/innobase/handler/ha_innodb.cc 2010-12-03 15:42:11.568959457 +0900
11@@ -148,6 +148,7 @@10@@ -148,6 +148,7 @@
12 static ulong innobase_write_io_threads;11 static ulong innobase_write_io_threads;
13 static long innobase_buffer_pool_instances = 1;12 static long innobase_buffer_pool_instances = 1;
@@ -47,9 +46,8 @@
47 MYSQL_SYSVAR(thread_sleep_delay),46 MYSQL_SYSVAR(thread_sleep_delay),
48 MYSQL_SYSVAR(autoinc_lock_mode),47 MYSQL_SYSVAR(autoinc_lock_mode),
49 MYSQL_SYSVAR(show_verbose_locks),48 MYSQL_SYSVAR(show_verbose_locks),
50diff -ruN a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h49--- a/storage/innobase/include/srv0srv.h
51--- a/storage/innobase/include/srv0srv.h 2010-12-03 15:37:45.543027751 +090050+++ b/storage/innobase/include/srv0srv.h
52+++ b/storage/innobase/include/srv0srv.h 2010-12-03 15:42:11.571024631 +0900
53@@ -161,6 +161,8 @@51@@ -161,6 +161,8 @@
54 extern ulint srv_mem_pool_size;52 extern ulint srv_mem_pool_size;
55 extern ulint srv_lock_table_size;53 extern ulint srv_lock_table_size;
@@ -59,9 +57,8 @@
59 extern ulint srv_n_file_io_threads;57 extern ulint srv_n_file_io_threads;
60 extern ulong srv_read_ahead_threshold;58 extern ulong srv_read_ahead_threshold;
61 extern ulint srv_n_read_io_threads;59 extern ulint srv_n_read_io_threads;
62diff -ruN a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c60--- a/storage/innobase/srv/srv0srv.c
63--- a/storage/innobase/srv/srv0srv.c 2010-12-03 15:37:45.546023493 +090061+++ b/storage/innobase/srv/srv0srv.c
64+++ b/storage/innobase/srv/srv0srv.c 2010-12-03 15:42:11.574955879 +0900
65@@ -347,6 +347,7 @@62@@ -347,6 +347,7 @@
66 computer. Bigger computers need bigger values. Value 0 will disable the63 computer. Bigger computers need bigger values. Value 0 will disable the
67 concurrency check. */64 concurrency check. */
6865
=== modified file 'patches/log_connection_error.patch'
--- patches/log_connection_error.patch 2011-07-22 16:56:42 +0000
+++ patches/log_connection_error.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN /dev/null b/patch_info/log_connection_error.patch8--- /dev/null
9--- /dev/null 1970-01-01 00:00:00.000000000 +00009+++ b/patch_info/log_connection_error.patch
10+++ b/patch_info/log_connection_error.patch 2011-04-09 18:48:54.000000000 +0400
11@@ -0,0 +1,6 @@10@@ -0,0 +1,6 @@
12+File=log_connection_error.patch11+File=log_connection_error.patch
13+Name=logging abandoned connections12+Name=logging abandoned connections
@@ -15,9 +14,8 @@
15+Author=Percona <info@percona.com>14+Author=Percona <info@percona.com>
16+License=GPL15+License=GPL
17+Comment=16+Comment=
18diff -ruN a/sql/mysqld.cc b/sql/mysqld.cc17--- a/sql/mysqld.cc
19--- a/sql/mysqld.cc 2011-04-09 18:48:53.000000000 +040018+++ b/sql/mysqld.cc
20+++ b/sql/mysqld.cc 2011-04-09 18:48:54.000000000 +0400
21@@ -5040,6 +5040,10 @@19@@ -5040,6 +5040,10 @@
22 20
23 DBUG_PRINT("error",("Too many connections"));21 DBUG_PRINT("error",("Too many connections"));
2422
=== modified file 'patches/log_warnings_suppress.patch'
--- patches/log_warnings_suppress.patch 2011-07-22 16:56:42 +0000
+++ patches/log_warnings_suppress.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN /dev/null b/patch_info/log_warnings_suppress.patch8--- /dev/null
9--- /dev/null 1970-01-01 00:00:00.000000000 +00009+++ b/patch_info/log_warnings_suppress.patch
10+++ b/patch_info/log_warnings_suppress.patch 2011-04-09 18:48:59.000000000 +0400
11@@ -0,0 +1,9 @@10@@ -0,0 +1,9 @@
12+File=log_warnings_suppress.patch11+File=log_warnings_suppress.patch
13+Name=Disable log warnings for enumerated warnings (old name:suppress_log_warning_1592.patch)12+Name=Disable log warnings for enumerated warnings (old name:suppress_log_warning_1592.patch)
@@ -18,9 +17,8 @@
18+Changelog17+Changelog
19+2011-01-05 rename patch suppress_log_warning_1592.patch to log_warnings_silence.patch. Also remove boolean system variable "suppress_log_warning_1592" and add set varbile "log_warnings_silence" (possible values: 1592)18+2011-01-05 rename patch suppress_log_warning_1592.patch to log_warnings_silence.patch. Also remove boolean system variable "suppress_log_warning_1592" and add set varbile "log_warnings_silence" (possible values: 1592)
20+2011-02-21 rename patch log_warning_silence.patch to log_warnings_suppress.patch. Also rename variable "log_warning_silence" to "log_warning_suppress".19+2011-02-21 rename patch log_warning_silence.patch to log_warnings_suppress.patch. Also rename variable "log_warning_silence" to "log_warning_suppress".
21diff -ruN a/sql/mysqld.cc b/sql/mysqld.cc20--- a/sql/mysqld.cc
22--- a/sql/mysqld.cc 2011-04-09 18:48:59.000000000 +040021+++ b/sql/mysqld.cc
23+++ b/sql/mysqld.cc 2011-04-09 18:48:59.000000000 +0400
24@@ -623,6 +623,8 @@22@@ -623,6 +623,8 @@
25 SHOW_COMP_OPTION have_crypt, have_compress;23 SHOW_COMP_OPTION have_crypt, have_compress;
26 SHOW_COMP_OPTION have_profiling;24 SHOW_COMP_OPTION have_profiling;
@@ -30,9 +28,8 @@
30 /* Thread specific variables */28 /* Thread specific variables */
31 29
32 pthread_key(MEM_ROOT**,THR_MALLOC);30 pthread_key(MEM_ROOT**,THR_MALLOC);
33diff -ruN a/sql/mysqld.h b/sql/mysqld.h31--- a/sql/mysqld.h
34--- a/sql/mysqld.h 2011-04-09 18:48:58.000000000 +040032+++ b/sql/mysqld.h
35+++ b/sql/mysqld.h 2011-04-09 18:48:59.000000000 +0400
36@@ -228,6 +228,8 @@33@@ -228,6 +228,8 @@
37 extern TYPELIB thread_handling_typelib;34 extern TYPELIB thread_handling_typelib;
38 extern my_decimal decimal_zero;35 extern my_decimal decimal_zero;
@@ -42,10 +39,9 @@
42 extern pthread_key(MEM_ROOT**,THR_MALLOC);39 extern pthread_key(MEM_ROOT**,THR_MALLOC);
43 40
44 #ifdef HAVE_PSI_INTERFACE41 #ifdef HAVE_PSI_INTERFACE
45diff -ruN a/sql/sql_class.cc b/sql/sql_class.cc42--- a/sql/sql_class.cc
46--- a/sql/sql_class.cc 2011-04-09 18:48:50.000000000 +040043+++ b/sql/sql_class.cc
47+++ b/sql/sql_class.cc 2011-04-09 18:48:59.000000000 +040044@@ -4578,7 +4578,7 @@
48@@ -4575,7 +4575,7 @@
49 ER_BINLOG_UNSAFE_STATEMENT,45 ER_BINLOG_UNSAFE_STATEMENT,
50 ER(ER_BINLOG_UNSAFE_STATEMENT),46 ER(ER_BINLOG_UNSAFE_STATEMENT),
51 ER(LEX::binlog_stmt_unsafe_errcode[unsafe_type]));47 ER(LEX::binlog_stmt_unsafe_errcode[unsafe_type]));
@@ -54,9 +50,8 @@
54 {50 {
55 char buf[MYSQL_ERRMSG_SIZE * 2];51 char buf[MYSQL_ERRMSG_SIZE * 2];
56 sprintf(buf, ER(ER_BINLOG_UNSAFE_STATEMENT),52 sprintf(buf, ER(ER_BINLOG_UNSAFE_STATEMENT),
57diff -ruN a/sql/sql_class.h b/sql/sql_class.h53--- a/sql/sql_class.h
58--- a/sql/sql_class.h 2011-04-09 18:48:53.000000000 +040054+++ b/sql/sql_class.h
59+++ b/sql/sql_class.h 2011-04-09 18:48:59.000000000 +0400
60@@ -90,6 +90,7 @@55@@ -90,6 +90,7 @@
61 SLOG_F_TMP_TABLE, SLOG_F_TMP_DISK, SLOG_F_FILESORT,56 SLOG_F_TMP_TABLE, SLOG_F_TMP_DISK, SLOG_F_FILESORT,
62 SLOG_F_FILESORT_DISK57 SLOG_F_FILESORT_DISK
@@ -65,9 +60,8 @@
65 enum enum_slave_exec_mode { SLAVE_EXEC_MODE_STRICT,60 enum enum_slave_exec_mode { SLAVE_EXEC_MODE_STRICT,
66 SLAVE_EXEC_MODE_IDEMPOTENT,61 SLAVE_EXEC_MODE_IDEMPOTENT,
67 SLAVE_EXEC_MODE_LAST_BIT};62 SLAVE_EXEC_MODE_LAST_BIT};
68diff -ruN a/sql/sys_vars.cc b/sql/sys_vars.cc63--- a/sql/sys_vars.cc
69--- a/sql/sys_vars.cc 2011-04-09 18:48:55.000000000 +040064+++ b/sql/sys_vars.cc
70+++ b/sql/sys_vars.cc 2011-04-09 18:48:59.000000000 +0400
71@@ -1470,6 +1470,15 @@65@@ -1470,6 +1470,15 @@
72 READ_ONLY GLOBAL_VAR(mysqld_port), CMD_LINE(REQUIRED_ARG, 'P'),66 READ_ONLY GLOBAL_VAR(mysqld_port), CMD_LINE(REQUIRED_ARG, 'P'),
73 VALID_RANGE(0, UINT_MAX32), DEFAULT(0), BLOCK_SIZE(1));67 VALID_RANGE(0, UINT_MAX32), DEFAULT(0), BLOCK_SIZE(1));
7468
=== modified file 'patches/microsec_process.patch'
--- patches/microsec_process.patch 2011-07-22 16:56:42 +0000
+++ patches/microsec_process.patch 2011-07-27 11:32:35 +0000
@@ -5,9 +5,8 @@
5#!!! notice !!!5#!!! notice !!!
6# Any small change to this file in the main branch6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!7# should be done or reviewed by the maintainer!
8diff -ruN /dev/null b/patch_info/microsec_process.info8--- /dev/null
9--- /dev/null 1970-01-01 09:00:00.000000000 +09009+++ b/patch_info/microsec_process.info
10+++ b/patch_info/microsec_process.info 2010-12-02 20:41:41.616069579 +0900
11@@ -0,0 +1,8 @@10@@ -0,0 +1,8 @@
12+File=microsec_process.patch11+File=microsec_process.patch
13+Name=Adds INFOMATION_SCHEMA.PROCESSLIST with TIME_MS column12+Name=Adds INFOMATION_SCHEMA.PROCESSLIST with TIME_MS column
@@ -17,9 +16,8 @@
17+Comment=16+Comment=
18+2010-0117+2010-01
19+Ported to 5.1.4218+Ported to 5.1.42
20diff -ruN a/sql/sql_show.cc b/sql/sql_show.cc19--- a/sql/sql_show.cc
21--- a/sql/sql_show.cc 2010-12-02 19:22:40.054024541 +090020+++ b/sql/sql_show.cc
22+++ b/sql/sql_show.cc 2010-12-02 20:41:41.622941425 +0900
23@@ -1890,7 +1890,8 @@21@@ -1890,7 +1890,8 @@
24 TABLE *table= tables->table;22 TABLE *table= tables->table;
25 CHARSET_INFO *cs= system_charset_info;23 CHARSET_INFO *cs= system_charset_info;
2624
=== modified file 'patches/mysql-test.diff'
--- patches/mysql-test.diff 2011-07-22 16:56:42 +0000
+++ patches/mysql-test.diff 2011-07-27 11:32:35 +0000
@@ -1,6 +1,5 @@
1diff -ruN a/mysql-test/include/default_mysqld.cnf b/mysql-test/include/default_mysqld.cnf1--- a/mysql-test/include/default_mysqld.cnf
2--- a/mysql-test/include/default_mysqld.cnf 2011-04-09 18:48:03.000000000 +04002+++ b/mysql-test/include/default_mysqld.cnf
3+++ b/mysql-test/include/default_mysqld.cnf 2011-04-09 18:49:05.000000000 +0400
4@@ -29,7 +29,7 @@3@@ -29,7 +29,7 @@
5 max_heap_table_size= 1M4 max_heap_table_size= 1M
6 5
@@ -10,9 +9,8 @@
10 loose-innodb_write_io_threads= 29 loose-innodb_write_io_threads= 2
11 loose-innodb_read_io_threads= 210 loose-innodb_read_io_threads= 2
12 loose-innodb_log_buffer_size= 1M11 loose-innodb_log_buffer_size= 1M
13diff -ruN a/mysql-test/r/connect.result b/mysql-test/r/connect.result12--- a/mysql-test/r/connect.result
14--- a/mysql-test/r/connect.result 2011-04-09 18:48:03.000000000 +040013+++ b/mysql-test/r/connect.result
15+++ b/mysql-test/r/connect.result 2011-04-09 18:49:05.000000000 +0400
16@@ -1,3 +1,4 @@14@@ -1,3 +1,4 @@
17+set global log_warnings=0;15+set global log_warnings=0;
18 drop table if exists t1,t2;16 drop table if exists t1,t2;
@@ -23,9 +21,8 @@
23 # -- End of 5.1 tests21 # -- End of 5.1 tests
24 # ------------------------------------------------------------------22 # ------------------------------------------------------------------
25+set global log_warnings=1;23+set global log_warnings=1;
26diff -ruN a/mysql-test/r/create.result b/mysql-test/r/create.result24--- a/mysql-test/r/create.result
27--- a/mysql-test/r/create.result 2011-04-09 18:48:03.000000000 +040025+++ b/mysql-test/r/create.result
28+++ b/mysql-test/r/create.result 2011-04-09 18:49:05.000000000 +0400
29@@ -1741,7 +1741,11 @@26@@ -1741,7 +1741,11 @@
30 `COMMAND` varchar(16) NOT NULL DEFAULT '',27 `COMMAND` varchar(16) NOT NULL DEFAULT '',
31 `TIME` int(7) NOT NULL DEFAULT '0',28 `TIME` int(7) NOT NULL DEFAULT '0',
@@ -52,9 +49,8 @@
52 ) ENGINE=MyISAM DEFAULT CHARSET=utf849 ) ENGINE=MyISAM DEFAULT CHARSET=utf8
53 drop table t1;50 drop table t1;
54 create table t1 like information_schema.character_sets;51 create table t1 like information_schema.character_sets;
55diff -ruN a/mysql-test/r/information_schema.result b/mysql-test/r/information_schema.result52--- a/mysql-test/r/information_schema.result
56--- a/mysql-test/r/information_schema.result 2011-04-09 18:48:03.000000000 +040053+++ b/mysql-test/r/information_schema.result
57+++ b/mysql-test/r/information_schema.result 2011-04-09 18:49:05.000000000 +0400
58@@ -46,14 +46,17 @@54@@ -46,14 +46,17 @@
59 select * from v1;55 select * from v1;
60 c56 c
@@ -266,9 +262,8 @@
266 VIEWS information_schema.VIEWS 1262 VIEWS information_schema.VIEWS 1
267 create table t1(f1 int);263 create table t1(f1 int);
268 create view v1 as select f1+1 as a from t1;264 create view v1 as select f1+1 as a from t1;
269diff -ruN a/mysql-test/r/information_schema_db.result b/mysql-test/r/information_schema_db.result265--- a/mysql-test/r/information_schema_db.result
270--- a/mysql-test/r/information_schema_db.result 2011-04-09 18:48:03.000000000 +0400266+++ b/mysql-test/r/information_schema_db.result
271+++ b/mysql-test/r/information_schema_db.result 2011-04-09 18:49:05.000000000 +0400
272@@ -6,14 +6,17 @@267@@ -6,14 +6,17 @@
273 show tables where Tables_in_information_schema NOT LIKE 'Innodb%';268 show tables where Tables_in_information_schema NOT LIKE 'Innodb%';
274 Tables_in_information_schema269 Tables_in_information_schema
@@ -319,9 +314,8 @@
319 TRIGGERS314 TRIGGERS
320 create database `inf%`;315 create database `inf%`;
321 create database mbase;316 create database mbase;
322diff -ruN a/mysql-test/r/mysqld--help-notwin.result b/mysql-test/r/mysqld--help-notwin.result317--- a/mysql-test/r/mysqld--help-notwin.result
323--- a/mysql-test/r/mysqld--help-notwin.result 2011-04-09 18:48:03.000000000 +0400318+++ b/mysql-test/r/mysqld--help-notwin.result
324+++ b/mysql-test/r/mysqld--help-notwin.result 2011-04-09 18:49:05.000000000 +0400
325@@ -250,21 +250,40 @@319@@ -250,21 +250,40 @@
326 --log-slow-admin-statements 320 --log-slow-admin-statements
327 Log slow OPTIMIZE, ANALYZE, ALTER and other321 Log slow OPTIMIZE, ANALYZE, ALTER and other
@@ -493,9 +487,8 @@
493 487
494 To see what values a running MySQL server is using, type488 To see what values a running MySQL server is using, type
495 'mysqladmin variables' instead of 'mysqld --verbose --help'.489 'mysqladmin variables' instead of 'mysqld --verbose --help'.
496diff -ruN a/mysql-test/r/mysqldump.result b/mysql-test/r/mysqldump.result490--- a/mysql-test/r/mysqldump.result
497--- a/mysql-test/r/mysqldump.result 2011-04-09 18:48:03.000000000 +0400491+++ b/mysql-test/r/mysqldump.result
498+++ b/mysql-test/r/mysqldump.result 2011-04-09 18:49:05.000000000 +0400
499@@ -1832,7 +1832,7 @@492@@ -1832,7 +1832,7 @@
500 # Bug#21288 mysqldump segmentation fault when using --where493 # Bug#21288 mysqldump segmentation fault when using --where
501 #494 #
@@ -505,9 +498,8 @@
505 mysqldump: Got error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1 when retrieving data from server498 mysqldump: Got error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1 when retrieving data from server
506 499
507 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;500 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
508diff -ruN a/mysql-test/r/mysqlshow.result b/mysql-test/r/mysqlshow.result501--- a/mysql-test/r/mysqlshow.result
509--- a/mysql-test/r/mysqlshow.result 2011-04-09 18:48:03.000000000 +0400502+++ b/mysql-test/r/mysqlshow.result
510+++ b/mysql-test/r/mysqlshow.result 2011-04-09 18:49:05.000000000 +0400
511@@ -80,14 +80,17 @@503@@ -80,14 +80,17 @@
512 | Tables |504 | Tables |
513 +---------------------------------------+505 +---------------------------------------+
@@ -639,9 +631,8 @@
639 +---------------------------------------+631 +---------------------------------------+
640 Wildcard: inf_rmation_schema632 Wildcard: inf_rmation_schema
641 +--------------------+633 +--------------------+
642diff -ruN a/mysql-test/r/select.result b/mysql-test/r/select.result634--- a/mysql-test/r/select.result
643--- a/mysql-test/r/select.result 2011-04-09 18:48:03.000000000 +0400635+++ b/mysql-test/r/select.result
644+++ b/mysql-test/r/select.result 2011-04-09 18:49:05.000000000 +0400
645@@ -2196,10 +2196,10 @@636@@ -2196,10 +2196,10 @@
646 select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 on t1.a>1;637 select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 on t1.a>1;
647 a a638 a a
@@ -655,9 +646,8 @@
655 3 3646 3 3
656 select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;647 select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
657 a a648 a a
658diff -ruN a/mysql-test/r/show_check.result b/mysql-test/r/show_check.result649--- a/mysql-test/r/show_check.result
659--- a/mysql-test/r/show_check.result 2011-04-09 18:48:03.000000000 +0400650+++ b/mysql-test/r/show_check.result
660+++ b/mysql-test/r/show_check.result 2011-04-09 18:49:05.000000000 +0400
661@@ -1538,14 +1538,14 @@651@@ -1538,14 +1538,14 @@
662 SET NAMES latin1;652 SET NAMES latin1;
663 SELECT GET_LOCK('t',1000) AS 'óóóó';;653 SELECT GET_LOCK('t',1000) AS 'óóóó';;
@@ -679,9 +669,8 @@
679 SELECT RELEASE_LOCK('t');669 SELECT RELEASE_LOCK('t');
680 RELEASE_LOCK('t')670 RELEASE_LOCK('t')
681 1671 1
682diff -ruN a/mysql-test/r/sp-threads.result b/mysql-test/r/sp-threads.result672--- a/mysql-test/r/sp-threads.result
683--- a/mysql-test/r/sp-threads.result 2011-04-09 18:48:03.000000000 +0400673+++ b/mysql-test/r/sp-threads.result
684+++ b/mysql-test/r/sp-threads.result 2011-04-09 18:49:05.000000000 +0400
685@@ -33,11 +33,11 @@674@@ -33,11 +33,11 @@
686 lock tables t2 write;675 lock tables t2 write;
687 call bug9486();676 call bug9486();
@@ -699,9 +688,8 @@
699 unlock tables;688 unlock tables;
700 drop procedure bug9486;689 drop procedure bug9486;
701 drop table t1, t2;690 drop table t1, t2;
702diff -ruN a/mysql-test/suite/innodb/r/innodb.result b/mysql-test/suite/innodb/r/innodb.result691--- a/mysql-test/suite/innodb/r/innodb.result
703--- a/mysql-test/suite/innodb/r/innodb.result 2011-04-09 18:49:04.000000000 +0400692+++ b/mysql-test/suite/innodb/r/innodb.result
704+++ b/mysql-test/suite/innodb/r/innodb.result 2011-04-09 18:49:05.000000000 +0400
705@@ -1664,7 +1664,7 @@693@@ -1664,7 +1664,7 @@
706 drop table t1;694 drop table t1;
707 SELECT variable_value FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_buffer_pool_pages_total';695 SELECT variable_value FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_buffer_pool_pages_total';
@@ -711,9 +699,8 @@
711 SELECT variable_value FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_page_size';699 SELECT variable_value FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_page_size';
712 variable_value700 variable_value
713 16384701 16384
714diff -ruN a/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result b/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result702--- a/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result
715--- a/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result 2011-04-09 18:48:03.000000000 +0400703+++ b/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result
716+++ b/mysql-test/suite/sys_vars/r/innodb_flush_log_at_trx_commit_basic.result 2011-04-09 18:49:05.000000000 +0400
717@@ -10,7 +10,6 @@704@@ -10,7 +10,6 @@
718 1705 1
719 '#---------------------FN_DYNVARS_046_02-------------------------#'706 '#---------------------FN_DYNVARS_046_02-------------------------#'
@@ -722,9 +709,8 @@
722 SELECT @@innodb_flush_log_at_trx_commit;709 SELECT @@innodb_flush_log_at_trx_commit;
723 @@innodb_flush_log_at_trx_commit710 @@innodb_flush_log_at_trx_commit
724 1711 1
725diff -ruN a/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test b/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test712--- a/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test
726--- a/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test 2011-04-09 18:48:03.000000000 +0400713+++ b/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test
727+++ b/mysql-test/suite/sys_vars/t/innodb_flush_log_at_trx_commit_basic.test 2011-04-09 18:49:05.000000000 +0400
728@@ -56,7 +56,7 @@714@@ -56,7 +56,7 @@
729 # Check if variable can be accessed with and without @@ sign #715 # Check if variable can be accessed with and without @@ sign #
730 ###############################################################################716 ###############################################################################
@@ -734,9 +720,8 @@
734 SET innodb_flush_log_at_trx_commit = 1;720 SET innodb_flush_log_at_trx_commit = 1;
735 SELECT @@innodb_flush_log_at_trx_commit;721 SELECT @@innodb_flush_log_at_trx_commit;
736 722
737diff -ruN a/mysql-test/t/connect.test b/mysql-test/t/connect.test723--- a/mysql-test/t/connect.test
738--- a/mysql-test/t/connect.test 2011-04-09 18:48:03.000000000 +0400724+++ b/mysql-test/t/connect.test
739+++ b/mysql-test/t/connect.test 2011-04-09 18:49:05.000000000 +0400
740@@ -1,3 +1,5 @@725@@ -1,3 +1,5 @@
741+set global log_warnings=0;726+set global log_warnings=0;
742+727+
@@ -748,9 +733,8 @@
748 --source include/wait_until_count_sessions.inc733 --source include/wait_until_count_sessions.inc
749 734
750+set global log_warnings=1;735+set global log_warnings=1;
751diff -ruN a/mysql-test/t/show_check.test b/mysql-test/t/show_check.test736--- a/mysql-test/t/show_check.test
752--- a/mysql-test/t/show_check.test 2011-04-09 18:48:03.000000000 +0400737+++ b/mysql-test/t/show_check.test
753+++ b/mysql-test/t/show_check.test 2011-04-09 18:49:05.000000000 +0400
754@@ -1376,10 +1376,10 @@738@@ -1376,10 +1376,10 @@
755 let $wait_timeout= 10;739 let $wait_timeout= 10;
756 let $wait_condition= SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%GET_LOCK%' AND ID != CONNECTION_ID();740 let $wait_condition= SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%GET_LOCK%' AND ID != CONNECTION_ID();
@@ -764,9 +748,8 @@
764 SHOW PROCESSLIST;748 SHOW PROCESSLIST;
765 SELECT RELEASE_LOCK('t');749 SELECT RELEASE_LOCK('t');
766 --connection con1750 --connection con1
767diff -ruN a/mysql-test/t/sp-threads.test b/mysql-test/t/sp-threads.test751--- a/mysql-test/t/sp-threads.test
768--- a/mysql-test/t/sp-threads.test 2011-04-09 18:48:03.000000000 +0400752+++ b/mysql-test/t/sp-threads.test
769+++ b/mysql-test/t/sp-threads.test 2011-04-09 18:49:05.000000000 +0400
770@@ -81,7 +81,7 @@753@@ -81,7 +81,7 @@
771 connection con2root;754 connection con2root;
772 --sleep 2755 --sleep 2
@@ -776,509 +759,426 @@
776 show processlist;759 show processlist;
777 unlock tables;760 unlock tables;
778 connection con1root;761 connection con1root;
779diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_slow_sp_statements_basic.result762--- /dev/null
780--- /dev/null 1970-01-01 00:00:00.000000000 +0000763+++ b/mysql-test/suite/sys_vars/r/log_slow_sp_statements_basic.result
781+++ b/mysql-test/suite/sys_vars/r/log_slow_sp_statements_basic.result 2011-04-09 18:49:05.000000000 +0400
782@@ -0,0 +1,3 @@764@@ -0,0 +1,3 @@
783+SELECT @@global.log_slow_sp_statements;765+SELECT @@global.log_slow_sp_statements;
784+@@global.log_slow_sp_statements766+@@global.log_slow_sp_statements
785+1767+1
786diff -ruN /dev/null b/mysql-test/suite/sys_vars/t/log_slow_sp_statements_basic.test768--- /dev/null
787--- /dev/null 1970-01-01 00:00:00.000000000 +0000769+++ b/mysql-test/suite/sys_vars/t/log_slow_sp_statements_basic.test
788+++ b/mysql-test/suite/sys_vars/t/log_slow_sp_statements_basic.test 2011-04-09 18:49:05.000000000 +0400
789@@ -0,0 +1 @@770@@ -0,0 +1 @@
790+SELECT @@global.log_slow_sp_statements;771+SELECT @@global.log_slow_sp_statements;
791diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/fast_index_creation_basic.result772--- /dev/null
792--- /dev/null 1970-01-01 00:00:00.000000000 +0000773+++ b/mysql-test/suite/sys_vars/r/fast_index_creation_basic.result
793+++ b/mysql-test/suite/sys_vars/r/fast_index_creation_basic.result 2011-04-09 18:49:05.000000000 +0400
794@@ -0,0 +1,3 @@774@@ -0,0 +1,3 @@
795+SELECT @@global.fast_index_creation;775+SELECT @@global.fast_index_creation;
796+@@global.fast_index_creation776+@@global.fast_index_creation
797+1777+1
798diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/have_response_time_distribution_basic.result778--- /dev/null
799--- /dev/null 1970-01-01 00:00:00.000000000 +0000779+++ b/mysql-test/suite/sys_vars/r/have_response_time_distribution_basic.result
800+++ b/mysql-test/suite/sys_vars/r/have_response_time_distribution_basic.result 2011-04-09 18:49:05.000000000 +0400
801@@ -0,0 +1,3 @@780@@ -0,0 +1,3 @@
802+SELECT @@global.have_response_time_distribution;781+SELECT @@global.have_response_time_distribution;
803+@@global.have_response_time_distribution782+@@global.have_response_time_distribution
804+YES783+YES
805diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_adaptive_flushing_method_basic.result784--- /dev/null
806--- /dev/null 1970-01-01 00:00:00.000000000 +0000785+++ b/mysql-test/suite/sys_vars/r/innodb_adaptive_flushing_method_basic.result
807+++ b/mysql-test/suite/sys_vars/r/innodb_adaptive_flushing_method_basic.result 2011-04-09 18:49:05.000000000 +0400
808@@ -0,0 +1,3 @@786@@ -0,0 +1,3 @@
809+SELECT @@global.innodb_adaptive_flushing_method;787+SELECT @@global.innodb_adaptive_flushing_method;
810+@@global.innodb_adaptive_flushing_method788+@@global.innodb_adaptive_flushing_method
811+estimate789+estimate
812diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_adaptive_hash_index_partitions_basic.result790--- /dev/null
813--- /dev/null 1970-01-01 00:00:00.000000000 +0000791+++ b/mysql-test/suite/sys_vars/r/innodb_adaptive_hash_index_partitions_basic.result
814+++ b/mysql-test/suite/sys_vars/r/innodb_adaptive_hash_index_partitions_basic.result 2011-04-09 18:49:05.000000000 +0400
815@@ -0,0 +1,3 @@792@@ -0,0 +1,3 @@
816+SELECT @@global.innodb_adaptive_hash_index_partitions;793+SELECT @@global.innodb_adaptive_hash_index_partitions;
817+@@global.innodb_adaptive_hash_index_partitions794+@@global.innodb_adaptive_hash_index_partitions
818+1795+1
819diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_restore_at_startup_basic.result796--- /dev/null
820--- /dev/null 1970-01-01 00:00:00.000000000 +0000797+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_restore_at_startup_basic.result
821+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_restore_at_startup_basic.result 2011-04-09 18:49:05.000000000 +0400
822@@ -0,0 +1,3 @@798@@ -0,0 +1,3 @@
823+SELECT @@global.innodb_buffer_pool_restore_at_startup;799+SELECT @@global.innodb_buffer_pool_restore_at_startup;
824+@@global.innodb_buffer_pool_restore_at_startup800+@@global.innodb_buffer_pool_restore_at_startup
825+0801+0
826diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_checksum_basic.result802--- /dev/null
827--- /dev/null 1970-01-01 00:00:00.000000000 +0000803+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_checksum_basic.result
828+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_checksum_basic.result 2011-04-09 18:49:05.000000000 +0400
829@@ -0,0 +1,3 @@804@@ -0,0 +1,3 @@
830+SELECT @@global.innodb_buffer_pool_shm_checksum;805+SELECT @@global.innodb_buffer_pool_shm_checksum;
831+@@global.innodb_buffer_pool_shm_checksum806+@@global.innodb_buffer_pool_shm_checksum
832+1807+1
833diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_key_basic.result808--- /dev/null
834--- /dev/null 1970-01-01 00:00:00.000000000 +0000809+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_key_basic.result
835+++ b/mysql-test/suite/sys_vars/r/innodb_buffer_pool_shm_key_basic.result 2011-04-09 18:49:05.000000000 +0400
836@@ -0,0 +1,3 @@810@@ -0,0 +1,3 @@
837+SELECT @@global.innodb_buffer_pool_shm_key;811+SELECT @@global.innodb_buffer_pool_shm_key;
838+@@global.innodb_buffer_pool_shm_key812+@@global.innodb_buffer_pool_shm_key
839+0813+0
840diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_checkpoint_age_target_basic.result814--- /dev/null
841--- /dev/null 1970-01-01 00:00:00.000000000 +0000815+++ b/mysql-test/suite/sys_vars/r/innodb_checkpoint_age_target_basic.result
842+++ b/mysql-test/suite/sys_vars/r/innodb_checkpoint_age_target_basic.result 2011-04-09 18:49:05.000000000 +0400
843@@ -0,0 +1,3 @@816@@ -0,0 +1,3 @@
844+SELECT @@global.innodb_checkpoint_age_target;817+SELECT @@global.innodb_checkpoint_age_target;
845+@@global.innodb_checkpoint_age_target818+@@global.innodb_checkpoint_age_target
846+0819+0
847diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_corrupt_table_action_basic.result820--- /dev/null
848--- /dev/null 1970-01-01 00:00:00.000000000 +0000821+++ b/mysql-test/suite/sys_vars/r/innodb_corrupt_table_action_basic.result
849+++ b/mysql-test/suite/sys_vars/r/innodb_corrupt_table_action_basic.result 2011-04-09 18:49:05.000000000 +0400
850@@ -0,0 +1,3 @@822@@ -0,0 +1,3 @@
851+SELECT @@global.innodb_corrupt_table_action;823+SELECT @@global.innodb_corrupt_table_action;
852+@@global.innodb_corrupt_table_action824+@@global.innodb_corrupt_table_action
853+assert825+assert
854diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_dict_size_limit_basic.result826--- /dev/null
855--- /dev/null 1970-01-01 00:00:00.000000000 +0000827+++ b/mysql-test/suite/sys_vars/r/innodb_dict_size_limit_basic.result
856+++ b/mysql-test/suite/sys_vars/r/innodb_dict_size_limit_basic.result 2011-04-09 18:49:05.000000000 +0400
857@@ -0,0 +1,3 @@828@@ -0,0 +1,3 @@
858+SELECT @@global.innodb_dict_size_limit;829+SELECT @@global.innodb_dict_size_limit;
859+@@global.innodb_dict_size_limit830+@@global.innodb_dict_size_limit
860+0831+0
861diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_doublewrite_file_basic.result832--- /dev/null
862--- /dev/null 1970-01-01 00:00:00.000000000 +0000833+++ b/mysql-test/suite/sys_vars/r/innodb_doublewrite_file_basic.result
863+++ b/mysql-test/suite/sys_vars/r/innodb_doublewrite_file_basic.result 2011-04-09 18:49:05.000000000 +0400
864@@ -0,0 +1,3 @@834@@ -0,0 +1,3 @@
865+SELECT @@global.innodb_doublewrite_file;835+SELECT @@global.innodb_doublewrite_file;
866+@@global.innodb_doublewrite_file836+@@global.innodb_doublewrite_file
867+NULL837+NULL
868diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_fast_checksum_basic.result838--- /dev/null
869--- /dev/null 1970-01-01 00:00:00.000000000 +0000839+++ b/mysql-test/suite/sys_vars/r/innodb_fast_checksum_basic.result
870+++ b/mysql-test/suite/sys_vars/r/innodb_fast_checksum_basic.result 2011-04-09 18:49:05.000000000 +0400
871@@ -0,0 +1,3 @@840@@ -0,0 +1,3 @@
872+SELECT @@global.innodb_fast_checksum;841+SELECT @@global.innodb_fast_checksum;
873+@@global.innodb_fast_checksum842+@@global.innodb_fast_checksum
874+0843+0
875diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_flush_neighbor_pages_basic.result844--- /dev/null
876--- /dev/null 1970-01-01 00:00:00.000000000 +0000845+++ b/mysql-test/suite/sys_vars/r/innodb_flush_neighbor_pages_basic.result
877+++ b/mysql-test/suite/sys_vars/r/innodb_flush_neighbor_pages_basic.result 2011-04-09 18:49:05.000000000 +0400
878@@ -0,0 +1,3 @@846@@ -0,0 +1,3 @@
879+SELECT @@global.innodb_flush_neighbor_pages;847+SELECT @@global.innodb_flush_neighbor_pages;
880+@@global.innodb_flush_neighbor_pages848+@@global.innodb_flush_neighbor_pages
881+1849+1
882diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_ibuf_accel_rate_basic.result850--- /dev/null
883--- /dev/null 1970-01-01 00:00:00.000000000 +0000851+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_accel_rate_basic.result
884+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_accel_rate_basic.result 2011-04-09 18:49:05.000000000 +0400
885@@ -0,0 +1,3 @@852@@ -0,0 +1,3 @@
886+SELECT @@global.innodb_ibuf_accel_rate;853+SELECT @@global.innodb_ibuf_accel_rate;
887+@@global.innodb_ibuf_accel_rate854+@@global.innodb_ibuf_accel_rate
888+100855+100
889diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_ibuf_active_contract_basic.result856--- /dev/null
890--- /dev/null 1970-01-01 00:00:00.000000000 +0000857+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_active_contract_basic.result
891+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_active_contract_basic.result 2011-04-09 18:49:05.000000000 +0400
892@@ -0,0 +1,3 @@858@@ -0,0 +1,3 @@
893+SELECT @@global.innodb_ibuf_active_contract;859+SELECT @@global.innodb_ibuf_active_contract;
894+@@global.innodb_ibuf_active_contract860+@@global.innodb_ibuf_active_contract
895+1861+1
896diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_ibuf_max_size_basic.result862--- /dev/null
897--- /dev/null 1970-01-01 00:00:00.000000000 +0000863+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_max_size_basic.result
898+++ b/mysql-test/suite/sys_vars/r/innodb_ibuf_max_size_basic.result 2011-04-09 18:49:05.000000000 +0400
899@@ -0,0 +1,3 @@864@@ -0,0 +1,3 @@
900+SELECT @@global.innodb_ibuf_max_size;865+SELECT @@global.innodb_ibuf_max_size;
901+@@global.innodb_ibuf_max_size866+@@global.innodb_ibuf_max_size
902+16760832867+16760832
903diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_import_table_from_xtrabackup_basic.result868--- /dev/null
904--- /dev/null 1970-01-01 00:00:00.000000000 +0000869+++ b/mysql-test/suite/sys_vars/r/innodb_import_table_from_xtrabackup_basic.result
905+++ b/mysql-test/suite/sys_vars/r/innodb_import_table_from_xtrabackup_basic.result 2011-04-09 18:49:05.000000000 +0400
906@@ -0,0 +1,3 @@870@@ -0,0 +1,3 @@
907+SELECT @@global.innodb_import_table_from_xtrabackup;871+SELECT @@global.innodb_import_table_from_xtrabackup;
908+@@global.innodb_import_table_from_xtrabackup872+@@global.innodb_import_table_from_xtrabackup
909+0873+0
910diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_lazy_drop_table_basic.result874--- /dev/null
911--- /dev/null 1970-01-01 00:00:00.000000000 +0000875+++ b/mysql-test/suite/sys_vars/r/innodb_lazy_drop_table_basic.result
912+++ b/mysql-test/suite/sys_vars/r/innodb_lazy_drop_table_basic.result 2011-04-09 18:49:05.000000000 +0400
913@@ -0,0 +1,3 @@876@@ -0,0 +1,3 @@
914+SELECT @@global.innodb_lazy_drop_table;877+SELECT @@global.innodb_lazy_drop_table;
915+@@global.innodb_lazy_drop_table878+@@global.innodb_lazy_drop_table
916+0879+0
917diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_log_block_size_basic.result880--- /dev/null
918--- /dev/null 1970-01-01 00:00:00.000000000 +0000881+++ b/mysql-test/suite/sys_vars/r/innodb_log_block_size_basic.result
919+++ b/mysql-test/suite/sys_vars/r/innodb_log_block_size_basic.result 2011-04-09 18:49:05.000000000 +0400
920@@ -0,0 +1,3 @@882@@ -0,0 +1,3 @@
921+SELECT @@global.innodb_log_block_size;883+SELECT @@global.innodb_log_block_size;
922+@@global.innodb_log_block_size884+@@global.innodb_log_block_size
923+512885+512
924diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_page_size_basic.result886--- /dev/null
925--- /dev/null 1970-01-01 00:00:00.000000000 +0000887+++ b/mysql-test/suite/sys_vars/r/innodb_page_size_basic.result
926+++ b/mysql-test/suite/sys_vars/r/innodb_page_size_basic.result 2011-04-09 18:49:05.000000000 +0400
927@@ -0,0 +1,3 @@888@@ -0,0 +1,3 @@
928+SELECT @@global.innodb_page_size;889+SELECT @@global.innodb_page_size;
929+@@global.innodb_page_size890+@@global.innodb_page_size
930+16384891+16384
931diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_read_ahead_basic.result892--- /dev/null
932--- /dev/null 1970-01-01 00:00:00.000000000 +0000893+++ b/mysql-test/suite/sys_vars/r/innodb_read_ahead_basic.result
933+++ b/mysql-test/suite/sys_vars/r/innodb_read_ahead_basic.result 2011-04-09 18:49:05.000000000 +0400
934@@ -0,0 +1,3 @@894@@ -0,0 +1,3 @@
935+SELECT @@global.innodb_read_ahead;895+SELECT @@global.innodb_read_ahead;
936+@@global.innodb_read_ahead896+@@global.innodb_read_ahead
937+linear897+linear
938diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_recovery_stats_basic.result898--- /dev/null
939--- /dev/null 1970-01-01 00:00:00.000000000 +0000899+++ b/mysql-test/suite/sys_vars/r/innodb_recovery_stats_basic.result
940+++ b/mysql-test/suite/sys_vars/r/innodb_recovery_stats_basic.result 2011-04-09 18:49:05.000000000 +0400
941@@ -0,0 +1,3 @@900@@ -0,0 +1,3 @@
942+SELECT @@global.innodb_recovery_stats;901+SELECT @@global.innodb_recovery_stats;
943+@@global.innodb_recovery_stats902+@@global.innodb_recovery_stats
944+0903+0
945diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_recovery_update_relay_log_basic.result904--- /dev/null
946--- /dev/null 1970-01-01 00:00:00.000000000 +0000905+++ b/mysql-test/suite/sys_vars/r/innodb_recovery_update_relay_log_basic.result
947+++ b/mysql-test/suite/sys_vars/r/innodb_recovery_update_relay_log_basic.result 2011-04-09 18:49:05.000000000 +0400
948@@ -0,0 +1,3 @@906@@ -0,0 +1,3 @@
949+SELECT @@global.innodb_recovery_update_relay_log;907+SELECT @@global.innodb_recovery_update_relay_log;
950+@@global.innodb_recovery_update_relay_log908+@@global.innodb_recovery_update_relay_log
951+0909+0
952diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_show_locks_held_basic.result910--- /dev/null
953--- /dev/null 1970-01-01 00:00:00.000000000 +0000911+++ b/mysql-test/suite/sys_vars/r/innodb_show_locks_held_basic.result
954+++ b/mysql-test/suite/sys_vars/r/innodb_show_locks_held_basic.result 2011-04-09 18:49:05.000000000 +0400
955@@ -0,0 +1,3 @@912@@ -0,0 +1,3 @@
956+SELECT @@global.innodb_show_locks_held;913+SELECT @@global.innodb_show_locks_held;
957+@@global.innodb_show_locks_held914+@@global.innodb_show_locks_held
958+10915+10
959diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_show_verbose_locks_basic.result916--- /dev/null
960--- /dev/null 1970-01-01 00:00:00.000000000 +0000917+++ b/mysql-test/suite/sys_vars/r/innodb_show_verbose_locks_basic.result
961+++ b/mysql-test/suite/sys_vars/r/innodb_show_verbose_locks_basic.result 2011-04-09 18:49:05.000000000 +0400
962@@ -0,0 +1,3 @@918@@ -0,0 +1,3 @@
963+SELECT @@global.innodb_show_verbose_locks;919+SELECT @@global.innodb_show_verbose_locks;
964+@@global.innodb_show_verbose_locks920+@@global.innodb_show_verbose_locks
965+0921+0
966diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_stats_auto_update_basic.result922--- /dev/null
967--- /dev/null 1970-01-01 00:00:00.000000000 +0000923+++ b/mysql-test/suite/sys_vars/r/innodb_stats_auto_update_basic.result
968+++ b/mysql-test/suite/sys_vars/r/innodb_stats_auto_update_basic.result 2011-04-09 18:49:05.000000000 +0400
969@@ -0,0 +1,3 @@924@@ -0,0 +1,3 @@
970+SELECT @@global.innodb_stats_auto_update;925+SELECT @@global.innodb_stats_auto_update;
971+@@global.innodb_stats_auto_update926+@@global.innodb_stats_auto_update
972+1927+1
973diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_stats_update_need_lock_basic.result928--- /dev/null
974--- /dev/null 1970-01-01 00:00:00.000000000 +0000929+++ b/mysql-test/suite/sys_vars/r/innodb_stats_update_need_lock_basic.result
975+++ b/mysql-test/suite/sys_vars/r/innodb_stats_update_need_lock_basic.result 2011-04-09 18:49:05.000000000 +0400
976@@ -0,0 +1,3 @@930@@ -0,0 +1,3 @@
977+SELECT @@global.innodb_stats_update_need_lock;931+SELECT @@global.innodb_stats_update_need_lock;
978+@@global.innodb_stats_update_need_lock932+@@global.innodb_stats_update_need_lock
979+1933+1
980diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_thread_concurrency_timer_based_basic.result934--- /dev/null
981--- /dev/null 1970-01-01 00:00:00.000000000 +0000935+++ b/mysql-test/suite/sys_vars/r/innodb_thread_concurrency_timer_based_basic.result
982+++ b/mysql-test/suite/sys_vars/r/innodb_thread_concurrency_timer_based_basic.result 2011-04-09 18:49:05.000000000 +0400
983@@ -0,0 +1,3 @@936@@ -0,0 +1,3 @@
984+SELECT @@global.innodb_thread_concurrency_timer_based;937+SELECT @@global.innodb_thread_concurrency_timer_based;
985+@@global.innodb_thread_concurrency_timer_based938+@@global.innodb_thread_concurrency_timer_based
986+0939+0
987diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_use_global_flush_log_at_trx_commit_basic.result940--- /dev/null
988--- /dev/null 1970-01-01 00:00:00.000000000 +0000941+++ b/mysql-test/suite/sys_vars/r/innodb_use_global_flush_log_at_trx_commit_basic.result
989+++ b/mysql-test/suite/sys_vars/r/innodb_use_global_flush_log_at_trx_commit_basic.result 2011-04-09 18:49:05.000000000 +0400
990@@ -0,0 +1,3 @@942@@ -0,0 +1,3 @@
991+SELECT @@global.innodb_use_global_flush_log_at_trx_commit;943+SELECT @@global.innodb_use_global_flush_log_at_trx_commit;
992+@@global.innodb_use_global_flush_log_at_trx_commit944+@@global.innodb_use_global_flush_log_at_trx_commit
993+1945+1
994diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/innodb_use_sys_stats_table_basic.result946--- /dev/null
995--- /dev/null 1970-01-01 00:00:00.000000000 +0000947+++ b/mysql-test/suite/sys_vars/r/innodb_use_sys_stats_table_basic.result
996+++ b/mysql-test/suite/sys_vars/r/innodb_use_sys_stats_table_basic.result 2011-04-09 18:49:05.000000000 +0400
997@@ -0,0 +1,3 @@948@@ -0,0 +1,3 @@
998+SELECT @@global.innodb_use_sys_stats_table;949+SELECT @@global.innodb_use_sys_stats_table;
999+@@global.innodb_use_sys_stats_table950+@@global.innodb_use_sys_stats_table
1000+0951+0
1001diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_slow_filter_basic.result952--- /dev/null
1002--- /dev/null 1970-01-01 00:00:00.000000000 +0000953+++ b/mysql-test/suite/sys_vars/r/log_slow_filter_basic.result
1003+++ b/mysql-test/suite/sys_vars/r/log_slow_filter_basic.result 2011-04-09 18:49:05.000000000 +0400
1004@@ -0,0 +1,3 @@954@@ -0,0 +1,3 @@
1005+SELECT @@global.log_slow_filter;955+SELECT @@global.log_slow_filter;
1006+@@global.log_slow_filter956+@@global.log_slow_filter
1007+957+
1008diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result958--- /dev/null
1009--- /dev/null 1970-01-01 00:00:00.000000000 +0000959+++ b/mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result
1010+++ b/mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result 2011-04-09 18:49:05.000000000 +0400
1011@@ -0,0 +1,3 @@960@@ -0,0 +1,3 @@
1012+SELECT @@global.log_slow_rate_limit;961+SELECT @@global.log_slow_rate_limit;
1013+@@global.log_slow_rate_limit962+@@global.log_slow_rate_limit
1014+1963+1
1015diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_slow_slave_statements_basic.result964--- /dev/null
1016--- /dev/null 1970-01-01 00:00:00.000000000 +0000965+++ b/mysql-test/suite/sys_vars/r/log_slow_slave_statements_basic.result
1017+++ b/mysql-test/suite/sys_vars/r/log_slow_slave_statements_basic.result 2011-04-09 18:49:05.000000000 +0400
1018@@ -0,0 +1,3 @@966@@ -0,0 +1,3 @@
1019+SELECT @@global.log_slow_slave_statements;967+SELECT @@global.log_slow_slave_statements;
1020+@@global.log_slow_slave_statements968+@@global.log_slow_slave_statements
1021+0969+0
1022diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result970--- /dev/null
1023--- /dev/null 1970-01-01 00:00:00.000000000 +0000971+++ b/mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result
1024+++ b/mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result 2011-04-09 18:49:05.000000000 +0400
1025@@ -0,0 +1,3 @@972@@ -0,0 +1,3 @@
1026+SELECT @@global.log_slow_verbosity;973+SELECT @@global.log_slow_verbosity;
1027+@@global.log_slow_verbosity974+@@global.log_slow_verbosity
1028+975+
1029diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/log_warnings_suppress_basic.result976--- /dev/null
1030--- /dev/null 1970-01-01 00:00:00.000000000 +0000977+++ b/mysql-test/suite/sys_vars/r/log_warnings_suppress_basic.result
1031+++ b/mysql-test/suite/sys_vars/r/log_warnings_suppress_basic.result 2011-04-09 18:49:05.000000000 +0400
1032@@ -0,0 +1,3 @@978@@ -0,0 +1,3 @@
1033+SELECT @@global.log_warnings_suppress;979+SELECT @@global.log_warnings_suppress;
1034+@@global.log_warnings_suppress980+@@global.log_warnings_suppress
1035+981+
1036diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/optimizer_fix_basic.result982--- /dev/null
1037--- /dev/null 1970-01-01 00:00:00.000000000 +0000983+++ b/mysql-test/suite/sys_vars/r/optimizer_fix_basic.result
1038+++ b/mysql-test/suite/sys_vars/r/optimizer_fix_basic.result 2011-04-09 18:49:05.000000000 +0400
1039@@ -0,0 +1,3 @@984@@ -0,0 +1,3 @@
1040+SELECT @@global.optimizer_fix;985+SELECT @@global.optimizer_fix;
1041+@@global.optimizer_fix986+@@global.optimizer_fix
1042+1987+1
1043diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/query_cache_strip_comments_basic.result988--- /dev/null
1044--- /dev/null 1970-01-01 00:00:00.000000000 +0000989+++ b/mysql-test/suite/sys_vars/r/query_cache_strip_comments_basic.result
1045+++ b/mysql-test/suite/sys_vars/r/query_cache_strip_comments_basic.result 2011-04-09 18:49:05.000000000 +0400
1046@@ -0,0 +1,3 @@990@@ -0,0 +1,3 @@
1047+SELECT @@global.query_cache_strip_comments;991+SELECT @@global.query_cache_strip_comments;
1048+@@global.query_cache_strip_comments992+@@global.query_cache_strip_comments
1049+0993+0
1050diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/query_response_time_range_base_basic.result994--- /dev/null
1051--- /dev/null 1970-01-01 00:00:00.000000000 +0000995+++ b/mysql-test/suite/sys_vars/r/query_response_time_range_base_basic.result
1052+++ b/mysql-test/suite/sys_vars/r/query_response_time_range_base_basic.result 2011-04-09 18:49:05.000000000 +0400
1053@@ -0,0 +1,3 @@996@@ -0,0 +1,3 @@
1054+SELECT @@global.query_response_time_range_base;997+SELECT @@global.query_response_time_range_base;
1055+@@global.query_response_time_range_base998+@@global.query_response_time_range_base
1056+10999+10
1057diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/query_response_time_stats_basic.result1000--- /dev/null
1058--- /dev/null 1970-01-01 00:00:00.000000000 +00001001+++ b/mysql-test/suite/sys_vars/r/query_response_time_stats_basic.result
1059+++ b/mysql-test/suite/sys_vars/r/query_response_time_stats_basic.result 2011-04-09 18:49:05.000000000 +0400
1060@@ -0,0 +1,3 @@1002@@ -0,0 +1,3 @@
1061+SELECT @@global.query_response_time_stats;1003+SELECT @@global.query_response_time_stats;
1062+@@global.query_response_time_stats1004+@@global.query_response_time_stats
1063+01005+0
1064diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_always_basic.result1006--- /dev/null
1065--- /dev/null 1970-01-01 00:00:00.000000000 +00001007+++ b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_always_basic.result
1066+++ b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_always_basic.result 2011-04-09 18:49:05.000000000 +0400
1067@@ -0,0 +1,3 @@1008@@ -0,0 +1,3 @@
1068+SELECT @@global.slow_query_log_timestamp_always;1009+SELECT @@global.slow_query_log_timestamp_always;
1069+@@global.slow_query_log_timestamp_always1010+@@global.slow_query_log_timestamp_always
1070+01011+0
1071diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_precision_basic.result1012--- /dev/null
1072--- /dev/null 1970-01-01 00:00:00.000000000 +00001013+++ b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_precision_basic.result
1073+++ b/mysql-test/suite/sys_vars/r/slow_query_log_timestamp_precision_basic.result 2011-04-09 18:49:05.000000000 +0400
1074@@ -0,0 +1,3 @@1014@@ -0,0 +1,3 @@
1075+SELECT @@global.slow_query_log_timestamp_precision;1015+SELECT @@global.slow_query_log_timestamp_precision;
1076+@@global.slow_query_log_timestamp_precision1016+@@global.slow_query_log_timestamp_precision
1077+second1017+second
1078diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/slow_query_log_use_global_control_basic.result1018--- /dev/null
1079--- /dev/null 1970-01-01 00:00:00.000000000 +00001019+++ b/mysql-test/suite/sys_vars/r/slow_query_log_use_global_control_basic.result
1080+++ b/mysql-test/suite/sys_vars/r/slow_query_log_use_global_control_basic.result 2011-04-09 18:49:05.000000000 +0400
1081@@ -0,0 +1,3 @@1020@@ -0,0 +1,3 @@
1082+SELECT @@global.slow_query_log_use_global_control;1021+SELECT @@global.slow_query_log_use_global_control;
1083+@@global.slow_query_log_use_global_control1022+@@global.slow_query_log_use_global_control
1084+1023+
1085diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/thread_statistics_basic.result1024--- /dev/null
1086--- /dev/null 1970-01-01 00:00:00.000000000 +00001025+++ b/mysql-test/suite/sys_vars/r/thread_statistics_basic.result
1087+++ b/mysql-test/suite/sys_vars/r/thread_statistics_basic.result 2011-04-09 18:49:05.000000000 +0400
1088@@ -0,0 +1,3 @@1026@@ -0,0 +1,3 @@
1089+SELECT @@global.thread_statistics;1027+SELECT @@global.thread_statistics;
1090+@@global.thread_statistics1028+@@global.thread_statistics
1091+01029+0
1092diff -ruN /dev/null b/mysql-test/suite/sys_vars/r/userstat_basic.result1030--- /dev/null
1093--- /dev/null 1970-01-01 00:00:00.000000000 +00001031+++ b/mysql-test/suite/sys_vars/r/userstat_basic.result
1094+++ b/mysql-test/suite/sys_vars/r/userstat_basic.result 2011-04-09 18:49:05.000000000 +0400
1095@@ -0,0 +1,3 @@1032@@ -0,0 +1,3 @@
1096+SELECT @@global.userstat;1033+SELECT @@global.userstat;
1097+@@global.userstat1034+@@global.userstat
1098+01035+0
1099diff -ruN /dev/null b/mysql-test/suite/sys_vars/t/fast_index_creation_basic.test1036--- /dev/null
1100--- /dev/null 1970-01-01 00:00:00.000000000 +00001037+++ b/mysql-test/suite/sys_vars/t/fast_index_creation_basic.test
1101+++ b/mysql-test/suite/sys_vars/t/fast_index_creation_basic.test 2011-04-09 18:49:05.000000000 +0400
1102@@ -0,0 +1 @@1038@@ -0,0 +1 @@
1103+SELECT @@global.fast_index_creation;1039+SELECT @@global.fast_index_creation;
1104diff -ruN /dev/null b/mysql-test/suite/sys_vars/t/have_response_time_distribution_basic.test
1105--- /dev/null 1970-01-01 00:00:00.000000000 +0000
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: