Skip to content

Commit

Permalink
If the class ctor function is defined, the class dtor function should…
Browse files Browse the repository at this point in the history
… be defined. (#187)
  • Loading branch information
zhang-lujie authored Oct 19, 2021
1 parent 6eeefaa commit 54141d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/mysqld_thd_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ THD *Global_THD_manager::find_thd(Find_thd_with_id *func) {
class Count_thread_running : public Do_THD_Impl {
public:
Count_thread_running() : m_count(0) {}
~Count_thread_running() {}
virtual void operator()(THD *thd) {
if (thd->get_command() != COM_SLEEP) {
m_count++;
Expand Down

0 comments on commit 54141d8

Please sign in to comment.