summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@ibm.>2007-07-27 17:39:01 +0400
committerunknown <anozdrin/alik@ibm.>2007-07-27 17:39:01 +0400
commit339ea316b938b9b1c2a166c6580bf84333d80a5f (patch)
tree0a1027664b33f7702e2d5be5c3cad1a9cc9af9a4 /client
parent1336b0eb1371868c3e6596565cbe35978dfa6140 (diff)
downloadmariadb-git-339ea316b938b9b1c2a166c6580bf84333d80a5f.tar.gz
Fix for BUG#28030: test im_instance_conf fails with an assert.
The problem was a race condition on shutdown -- when IM got shutdown request while a guarded mysqld is starting. In this case the Guardian thread tried to stop the mysqld, but might fail if the mysqld hadn't created pid-file so far. When this happened, the mysqld-monitor thread didn't stop, so the assert in Thread_registry happened. The fix is to make several attempts to stop mysqld if it is active. server-tools/instance-manager/guardian.cc: Try to stop mysqld several times if it is still active. server-tools/instance-manager/instance.cc: Make Instance::kill_mysqld() to return operation status. server-tools/instance-manager/instance.h: Make Instance::kill_mysqld() to return operation status. server-tools/instance-manager/thread_registry.cc: Log unregistered thread ids.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions