1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Get rid of checking for ETIME return value of pthread_cond_timedwait.

ETIME was returned by cond_timedwait (sic, the pre-POSIX1001b function) on 
Solaris 2.6 and 2.7. pthread_cond_timedwait on Solaris returns ETIMEDOUT.
The standard requirement is that the only additional return value
of pthred_cond_timedwait compared to pthread_cond_wait is ETIMEDOUT.
Let us not bloat the application code with redundant checks,
and if we're ever to work on a platform that returns a non-standard 
value, we should write a wrapper for that platform (like we do, e.g., for
Windows).
This commit is contained in:
konstantin@mysql.com
2005-07-14 19:42:56 +04:00
parent 6fd6fa517b
commit 9c6f14aa3d
4 changed files with 8 additions and 8 deletions

View File

@ -1730,7 +1730,7 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg)
#endif
if (thd->killed || di->status)
break;
if (error == ETIME || error == ETIMEDOUT)
if (error == ETIMEDOUT)
{
thd->killed= THD::KILL_CONNECTION;
break;