--tc-heuristic-recover option values are broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.5 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.6 |
Fix Released
|
Medium
|
Laurynas Biveinis |
Bug Description
Copy of http://
[8 Nov 2013 10:20] Laurynas Biveinis
Description:
--tc-heuristic-
#define TC_HEURISTIC_
#define TC_HEURISTIC_
How to repeat:
Set up the server for 2 XA SEs as in bug 70854, then start the server under the debugger with --tc-heuristic-
Breakpoint 2, ha_recover (commit_list=0x0) at /home/laurynas/
1846 DBUG_ENTER(
(gdb) print tc_heuristic_
$1 = 1
that is it's, equal to TC_HEURISTIC_
Suggested fix:
Re-enumerating the #defines to start from 0 won't work, as zero value for tc_heuristic_
I'd consider adding "NONE" as the 1st allowed option value and the default.
Related branches
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 129 lines (+79/-5)4 files modifiedmysql-test/r/mysqld--help-notwin.result (+2/-2)
mysql-test/r/tc-heuristic-recover.result (+24/-0)
mysql-test/t/tc-heuristic-recover.test (+50/-0)
sql/mysqld.cc (+3/-3)
tags: | added: tokudb upstream |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-1514