1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-20 13:13:59 +03:00

Fix minor typo in handling of error conditions and return of SLEEP().

This commit is contained in:
jimw@mysql.com 2005-08-17 19:57:07 -07:00
parent 15f97778ff
commit 1eb0f45d17

View File

@ -3269,7 +3269,7 @@ longlong Item_func_sleep::val_int()
THD *thd= current_thd;
struct timespec abstime;
pthread_cond_t cond;
int error= 0;
int error;
DBUG_ASSERT(fixed == 1);
@ -3284,7 +3284,7 @@ longlong Item_func_sleep::val_int()
while (!thd->killed &&
(error= pthread_cond_timedwait(&cond, &LOCK_user_locks,
&abstime) != ETIMEDOUT) &&
&abstime)) != ETIMEDOUT &&
error != EINVAL) ;
pthread_mutex_lock(&thd->mysys_var->mutex);