Below is the list of changes that have just been committed into a local
6.0 repository of jas. When jas 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@stripped, 2007-11-26 12:28:01-05:00, jas@stripped +1 -0
Fix recently introduced gopher thread wakeup bug.
storage/falcon/Synchronize.cpp@stripped, 2007-11-26 12:27:59-05:00, jas@stripped +2 -1
Fix recently introduced gopher thread wakeup bug.
diff -Nrup a/storage/falcon/Synchronize.cpp b/storage/falcon/Synchronize.cpp
--- a/storage/falcon/Synchronize.cpp 2007-11-23 18:02:31 -05:00
+++ b/storage/falcon/Synchronize.cpp 2007-11-26 12:27:59 -05:00
@@ -107,17 +107,18 @@ void Synchronize::sleep()
#endif
#ifdef _PTHREADS
+ sleeping = true;
int ret = pthread_mutex_lock (&mutex);
CHECK_RET ("pthread_mutex_lock failed, errno %d", errno);
while (!wakeup)
pthread_cond_wait (&condition, &mutex);
+ sleeping = false;
wakeup = false;
ret = pthread_mutex_unlock (&mutex);
CHECK_RET ("pthread_mutex_unlock failed, errno %d", errno);
#endif
- sleeping = false;
DEBUG_FREEZE;
}
| Thread |
|---|
| • bk commit into 6.0 tree (jas:1.2689) | Jim Starkey | 26 Nov |