diff options
author | monty@mysql.com <> | 2005-10-12 00:58:22 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-10-12 00:58:22 +0300 |
commit | f5fdf3e87a5f60fdb6442912ae5741a24b2461c8 (patch) | |
tree | ce0e98ba05247bbe755ac299d0ceaa8c42d63b7a /mysys/thr_mutex.c | |
parent | 17d7ba931d2293f1db89cbd1107a4bc71bc4fcdf (diff) | |
download | mariadb-git-f5fdf3e87a5f60fdb6442912ae5741a24b2461c8.tar.gz |
Reviewing new pushed code
- CHAR() now returns binary string as default
- CHAR(X*65536+Y*256+Z) is now equal to CHAR(X,Y,Z) independent of the character set for CHAR()
- Test for both ETIMEDOUT and ETIME from pthread_cond_timedwait()
(Some old systems returns ETIME and it's safer to test for both values
than to try to write a wrapper for each old system)
- Fixed new introduced bug in NOT BETWEEN X and X
- Ensure we call commit_by_xid or rollback_by_xid for all engines, even if one engine has failed
- Use octet2hex() for all conversion of string to hex
- Simplify and optimize code
Diffstat (limited to 'mysys/thr_mutex.c')
-rw-r--r-- | mysys/thr_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c index 2facb4e18cf..3326068d164 100644 --- a/mysys/thr_mutex.c +++ b/mysys/thr_mutex.c @@ -239,7 +239,7 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp, pthread_mutex_unlock(&mp->global); error=pthread_cond_timedwait(cond,&mp->mutex,abstime); #ifdef EXTRA_DEBUG - if (error && (error != EINTR && error != ETIMEDOUT)) + if (error && (error != EINTR && error != ETIMEDOUT && error != ETIME)) { fprintf(stderr,"safe_mutex: Got error: %d (%d) when doing a safe_mutex_timedwait at %s, line %d\n", error, errno, file, line); } |