Merge lp:~percona-dev/percona-server/5.1.57-fix_bug627189 into lp:~percona-dev/percona-server/5.1.57

Proposed by Yasufumi Kinoshita
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 232
Proposed branch: lp:~percona-dev/percona-server/5.1.57-fix_bug627189
Merge into: lp:~percona-dev/percona-server/5.1.57
Diff against target: 74 lines (+13/-24)
1 file modified
innodb_show_sys_tables.patch (+13/-24)
To merge this branch: bzr merge lp:~percona-dev/percona-server/5.1.57-fix_bug627189
Reviewer Review Type Date Requested Status
Stewart Smith (community) code Approve
Vadim Tkachenko Abstain
Review via email: mp+63346@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

I assign it to stewart, the feature should have test and documentation

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'innodb_show_sys_tables.patch'
--- innodb_show_sys_tables.patch 2011-05-23 03:13:45 +0000
+++ innodb_show_sys_tables.patch 2011-06-03 09:24:31 +0000
@@ -29,7 +29,7 @@
29 #include "buf0lru.h" /* for XTRA_LRU_[DUMP/RESTORE] */29 #include "buf0lru.h" /* for XTRA_LRU_[DUMP/RESTORE] */
30 }30 }
31 31
32@@ -3111,6 +3112,685 @@32@@ -3111,6 +3112,674 @@
33 STRUCT_FLD(deinit, i_s_common_deinit),33 STRUCT_FLD(deinit, i_s_common_deinit),
34 STRUCT_FLD(version, 0x0100 /* 1.0 */),34 STRUCT_FLD(version, 0x0100 /* 1.0 */),
35 STRUCT_FLD(status_vars, NULL),35 STRUCT_FLD(status_vars, NULL),
@@ -572,15 +572,14 @@
572+ rec = btr_pcur_get_rec(&pcur);572+ rec = btr_pcur_get_rec(&pcur);
573+ if (!btr_pcur_is_on_user_rec(&pcur)) {573+ if (!btr_pcur_is_on_user_rec(&pcur)) {
574+ /* end of index */574+ /* end of index */
575+ btr_pcur_close(&pcur);
576+ mtr_commit(&mtr);
577+ break;575+ break;
578+ }576+ }
577+
578+ btr_pcur_store_position(&pcur, &mtr);
579+
579+ if (rec_get_deleted_flag(rec, 0)) {580+ if (rec_get_deleted_flag(rec, 0)) {
580+ /* record marked as deleted */581+ /* record marked as deleted */
581+ btr_pcur_close(&pcur);582+ goto next_record;
582+ mtr_commit(&mtr);
583+ continue;
584+ }583+ }
585+584+
586+ if (id == 0) {585+ if (id == 0) {
@@ -591,33 +590,23 @@
591+ status = copy_sys_stats_rec(table, index, rec);590+ status = copy_sys_stats_rec(table, index, rec);
592+ }591+ }
593+ if (status) {592+ if (status) {
594+ btr_pcur_close(&pcur);
595+ mtr_commit(&mtr);
596+ break;593+ break;
597+ }594+ }
598+595+
599+#if 0596+ status = schema_table_store_record(thd, table);
600+ btr_pcur_store_position(&pcur, &mtr);597+ if (status) {
598+ break;
599+ }
600+next_record:
601+ mtr_commit(&mtr);601+ mtr_commit(&mtr);
602+602+
603+ status = schema_table_store_record(thd, table);
604+ if (status) {
605+ btr_pcur_close(&pcur);
606+ break;
607+ }
608+
609+ mtr_start(&mtr);603+ mtr_start(&mtr);
610+ btr_pcur_restore_position(BTR_SEARCH_LEAF, &pcur, &mtr);604+ btr_pcur_restore_position(BTR_SEARCH_LEAF, &pcur, &mtr);
611+#else
612+ status = schema_table_store_record(thd, table);
613+ if (status) {
614+ btr_pcur_close(&pcur);
615+ mtr_commit(&mtr);
616+ break;
617+ }
618+#endif
619+ }605+ }
620+606+
607+ btr_pcur_close(&pcur);
608+ mtr_commit(&mtr);
609+
621+ mutex_exit(&(dict_sys->mutex));610+ mutex_exit(&(dict_sys->mutex));
622+611+
623+ DBUG_RETURN(status);612+ DBUG_RETURN(status);

Subscribers

People subscribed via source and target branches