Hi!
<cut>
Steven> Will 2.22.28 fix the insert delayed problem on Linux?
>> Yes. The workaround in 3.22.28 is to change 'pthread_cond_timedwait()' in
>> sql/sql_insert.cc to pthread_cond_wait() until they have managed to
>> fix the bug in glibc.
Steven> Is there a patch for 3.22.27 such that we can implement this right away?
Didn't I post this already ?
*** /my/monty/master/mysql-3.22.26a/sql/sql_insert.cc Sat Aug 28 15:10:46 1999
--- ./sql_insert.cc Mon Dec 27 16:15:50 1999
***************
*** 925,931 ****
--- 936,950 ----
for ( ; ;)
{
int error;
+ #if (defined(HAVE_BROKEN_COND_TIMEDWAIT) || defined(HAVE_LINUXTHREADS))
+ error=pthread_cond_wait(&di->cond,&di->mutex);
+ #else
error=pthread_cond_timedwait(&di->cond,&di->mutex,&abstime);
+ #ifdef EXTRA_DEBUG
+ if (error && error != EINTR)
+ fprintf(stderr, "Got error %d from pthread_cond_timedwait\n",error);
+ #endif
+ #endif
if (thd->killed || di->status)
break;
if (error == ETIME || error == ETIMEDOUT)
Regards,
Monty