1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-419 ensure that all HAVE_XXX constants can be set by cmake

add missing checks to configure.cmake
remove dead code and unused HAVE_xxx constants from the sources
This commit is contained in:
Sergei Golubchik
2012-07-31 19:29:07 +02:00
parent 42ea25d4c5
commit 0117a92fed
26 changed files with 31 additions and 240 deletions

View File

@@ -2781,9 +2781,6 @@ pthread_handler_t handle_delayed_insert(void *arg)
{
int error;
mysql_audit_release(thd);
#if defined(HAVE_BROKEN_COND_TIMEDWAIT)
error= mysql_cond_wait(&di->cond, &di->mutex);
#else
error= mysql_cond_timedwait(&di->cond, &di->mutex, &abstime);
#ifdef EXTRA_DEBUG
if (error && error != EINTR && error != ETIMEDOUT)
@@ -2792,7 +2789,6 @@ pthread_handler_t handle_delayed_insert(void *arg)
DBUG_PRINT("error", ("Got error %d from mysql_cond_timedwait",
error));
}
#endif
#endif
if (error == ETIMEDOUT || error == ETIME)
thd->killed= KILL_CONNECTION;