[MDEV-5906] Thread status not changed when applying log events Created: 2014-03-19  Updated: 2014-03-22  Resolved: 2014-03-22

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.9
Fix Version/s: 10.0.11

Type: Bug Priority: Minor
Reporter: Kolbe Kegel (Inactive) Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: None


 Description   

The thread status of the SQL thread is not changed when it starts to apply a log event. The result is that the SQL thread has the status of "System lock" for the whole time it is executing relay log events.

The status of the thread should be changed when it starts to execute an event.



 Comments   
Comment by Kolbe Kegel (Inactive) [ 2014-03-19 ]

 +++ sql/log_event.cc    2014-03-19 19:24:26 +0000
 @@ -9622,6 +9622,7 @@ int Rows_log_event::do_apply_event(rpl_g
        goto err;
      }
 
 +    THD_STAGE_INFO(thd, stage_executing);
      /*

Comment by Kolbe Kegel (Inactive) [ 2014-03-20 ]

That first patch Monty proposed didn't do it, but this other one he proposed does:

+++ sql/log_event.cc    2014-03-20 16:59:38.112399862 +0000
@@ -11183,6 +11183,7 @@ int Rows_log_event::do_apply_event(Relay
         break;
     }
 
+    THD_STAGE_INFO(thd, stage_executing);
     do {
 
       error= (this->*do_apply_row_ptr)(rli);

Comment by Michael Widenius [ 2014-03-22 ]

Fixed.

Generated at Thu Feb 08 07:07:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.