Skip to content

Commit

Permalink
MDEV-35969 wsrep: set new status for service manager
Browse files Browse the repository at this point in the history
On WSREP state transfer the status in service manager changes to:

    WSREP state transfer (role ...) ongoing...

This status was not changed after state transfer was complete. Let's
change it again to reflect now situation:

    WSREP state transfer (role ...) comleted.
  • Loading branch information
eworm-de committed Jan 30, 2025
1 parent f538cb8 commit cb30654
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/wsrep_sst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ static void* wsrep_sst_donor_monitor_thread(void *arg __attribute__((unused)))
WSREP_INFO("Donor monitor thread ended with total time %lu sec", time_waited);
mysql_mutex_unlock(&LOCK_wsrep_donor_monitor);

sd_notify(0, "STATUS=WSREP state transfer (role donor) completed.\n");

return NULL;
}

Expand Down Expand Up @@ -169,6 +171,8 @@ static void* wsrep_sst_joiner_monitor_thread(void *arg __attribute__((unused)))
WSREP_INFO("Joiner monitor thread ended with total time %lu sec", time_waited);
mysql_mutex_unlock(&LOCK_wsrep_joiner_monitor);

sd_notify(0, "STATUS=WSREP state transfer (role joiner) completed.\n");

return NULL;
}

Expand Down

0 comments on commit cb30654

Please sign in to comment.