[MDEV-20638] Remove the deadcode from srv_master_thread() and srv_active_wake_master_thread_low() Created: 2019-09-20 Updated: 2020-08-19 Resolved: 2020-07-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.15, 10.3.7 |
| Fix Version/s: | 10.2.33, 10.3.24 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thirunarayanan Balathandayuthapani | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Deadcode is present in srv_master_thread() and srv_active_wake_master_thread_low(). This issue caused by mdev-16125:
|
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2020-04-13 ] | |||||||
|
Attaching the patch to remove the deadcode MDEV-20638-10.2-e40ed0e881690ed072c28c0f4080a3cfb83e5d73v1.patch | |||||||
| Comment by Marko Mäkelä [ 2020-04-15 ] | |||||||
|
This looks good to me, but I think that we can remove even more code:
Idea for srv_master_thread simplification:
| |||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-07-09 ] | |||||||
|
Fixed all the review comments and patch is in bb-10.2-thiru. We need SRV_MASTER_SLOT, SRV_MASTER & srv_reserve_slot(SRV_MASTER) to make sure | |||||||
| Comment by Marko Mäkelä [ 2020-07-13 ] | |||||||
|
Thank you for the update. I sent some comments. I think that any potentially functional changes must be documented in the commit message. | |||||||
| Comment by Marko Mäkelä [ 2020-07-22 ] | |||||||
|
This looks OK, but you forgot to remove INNOBASE_WAKE_INTERVAL from extra/mariabackup/xtrabackup.cc and storage/innobase/handler/ha_innodb.cc. I can also spot some inadvertent changes to white space. The commit message should mention that srv_master_thread() does not need to call srv_resume_thread() and therefore there is no need to wake up the thread. |