summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/manager.cc
diff options
context:
space:
mode:
authoranozdrin/alik@alik.opbmk <>2007-02-22 21:59:43 +0300
committeranozdrin/alik@alik.opbmk <>2007-02-22 21:59:43 +0300
commit8a7f5ce30d6114360199235ff2fc896b5aa86504 (patch)
treeb3d002cc0f4a2ccf559a023f074dace6f81c21c3 /server-tools/instance-manager/manager.cc
parent9abb43bf1b5311f1c108c2fcd472c78e512433f5 (diff)
parent76f813a52e6d929b94d3f1c799a121ddedcc8252 (diff)
downloadmariadb-git-8a7f5ce30d6114360199235ff2fc896b5aa86504.tar.gz
Merge alik.opbmk:/mnt/raid/alik/MySQL/devel/5.0-rt
into alik.opbmk:/mnt/raid/alik/MySQL/devel/5.1-rt-merge
Diffstat (limited to 'server-tools/instance-manager/manager.cc')
-rw-r--r--server-tools/instance-manager/manager.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/server-tools/instance-manager/manager.cc b/server-tools/instance-manager/manager.cc
index 48dfa4c3571..bde685d7a28 100644
--- a/server-tools/instance-manager/manager.cc
+++ b/server-tools/instance-manager/manager.cc
@@ -181,6 +181,9 @@ void Manager::stop_all_threads()
/* Stop all threads. */
p_thread_registry->deliver_shutdown();
+
+ /* Set error status in the thread registry. */
+ p_thread_registry->set_error_status();
}
@@ -248,7 +251,6 @@ bool Manager::init_user_map(User_map *user_map)
int Manager::main()
{
- int rc= 1;
bool shutdown_complete= FALSE;
pid_t manager_pid= getpid();
@@ -442,8 +444,6 @@ int Manager::main()
log_info("Manager: finished.");
- rc= 0;
-
err:
/* delete the pid file */
my_delete(Options::Main::pid_file_name, MYF(0));
@@ -452,7 +452,7 @@ err:
/* free alarm structures */
end_thr_alarm(1);
#endif
- return rc;
+ return thread_registry.get_error_status() ? 1 : 0;
}