lp:~tsarev/percona-server/5.5_fix_bug_716210
- Get this branch:
- bzr branch lp:~tsarev/percona-server/5.5_fix_bug_716210
Branch merges
- Laurynas Biveinis (community): Needs Fixing
- Alexey Kopytov: Pending requested
-
Diff: 752 lines (+523/-92) (has conflicts)1 file modifiedpatches/slow_extended.patch (+523/-92)
Branch information
- Owner:
- Oleg Tsarev
- Status:
- Development
Recent revisions
- 151. By Oleg Tsarev
-
* "all statistics variables used in slow_extended.patch and thd->send_row_count and thd->examined_
row_count" == SESV (Slow Extended Statistic Variables) * Added to class THD (sql/sql_class.h) following methods:
1) clear_slow_extended - clear SESV
2) reset_sub_statement_ state_slow_ extended( Sub_statement_ state *backup) - backup SESV to backup area
3) restore_sub_statement_ state_slow_ extended( Sub_statement_ state *backup) - restore SESV from backup area * Added to class Sub_statement_state (sql/sql_class.h) required for correct backup variables
* Added to class THD (sql/sql_class.h) comments near the SESV with explanations of purpose of variables
* Added call of clear_slow_extended to THD::init() (required on THD class initialisation and change_user)
* Fix admin command processing in LOGGER:
:slow_log_ print (sql/loc.cc). Before fix SESV don't clean correctly (because if(!query_length) never was true).
Explanation:
1) query and query_length according to comment in sql_class.h always correlated - if query == NULL => query_length == 0, and if query != NULL => query_length != 0
2) After "if (!query) { ... }" query_lenght always not 0
3) if (!query_length) (code before my fix) always trye* Fixed accoring to code policy code formating in "increment_
thd_innodb_ stats" (sql/sql_class.cc) * Fixed THD::reset_
for_next_ command (sql/sql_parse.cc) - replace variables cleaning by clear_slow_extended call * Fixed bug #716210: add thd->clear_
slow_extended( ) to dispatch_command()
Explanation: before dispatch_command mysql doesn't call "reset_for_next_ command" and SESV inherited from previous query - 150. By Oleg Tsarev
-
Fix bug #830199 - thd->last_errno was not updated on handle_condition (bug was introduced while porting slow_extended.patch 5.1 to 5.5)
- 148. By Oleg Tsarev
-
Add test-case for bug #851011: SHOW SLAVE STATUS NOLOCK acquire lock on
sql/slave.cc: 1650
pthread_mutex_lock( &mi->run_ lock);
Fix: wrap mutex lock/unlock by check to "UNLOCK" statement
Issue number: #12952. - 146. By Alexey Kopytov
-
Bug #845019: Support for building without response time distribution is
brokenDo not call query_response_
time_collect( ) if there is no support for
the response time distribution feature.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:percona-server/5.5