Below is the list of changes that have just been committed into a local
5.0 repository of cps. When cps does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1947 05/10/27 15:54:01 petr@stripped +1 -0
Fix for Bug #14388 "IM eats 99% CPU"
server-tools/instance-manager/listener.cc
1.22 05/10/27 15:53:49 petr@stripped +6 -2
reinitialize timer used in select(), as on linux it is modified
to reflect amout of time not slept (e.g. set ot zero)
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: petr
# Host: owlet.
# Root: /home/cps/mysql/trees/mysql-5.0-virgin
--- 1.21/server-tools/instance-manager/listener.cc 2005-10-08 18:39:39 +04:00
+++ 1.22/server-tools/instance-manager/listener.cc 2005-10-27 15:53:49 +04:00
@@ -122,11 +122,15 @@
n++;
timeval tv;
- tv.tv_sec= 0;
- tv.tv_usec= 100000;
while (!thread_registry.is_shutdown())
{
fd_set read_fds_arg= read_fds;
+ /*
+ We should reintialize timer as on linux it is modified
+ to reflect amout of time not slept.
+ */
+ tv.tv_sec= 0;
+ tv.tv_usec= 100000;
/*
When using valgrind 2.0 this syscall doesn't get kicked off by a
| Thread |
|---|
| • bk commit into 5.0 tree (petr:1.1947) BUG#14388 | Petr Chardin | 27 Oct |