1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed some minor issues, revealed by compiler warnings when using

BUILD/compile-pentium-debug-max
This commit is contained in:
jani@linux.local
2003-12-17 19:18:01 +00:00
parent 7a1fddaa1f
commit ecf54df991
4 changed files with 15 additions and 3 deletions

View File

@ -1140,7 +1140,9 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg)
/* request for new delayed insert */
if (!(thd->lock=mysql_lock_tables(thd,&di->table,1)))
{
di->dead=thd->killed= THD::KILL_CONNECTION; // Fatal error
/* Fatal error */
di->dead= 1;
thd->killed= THD::KILL_CONNECTION;
}
pthread_cond_broadcast(&di->cond_client);
}
@ -1148,7 +1150,9 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg)
{
if (di->handle_inserts())
{
di->dead=thd->killed=THD::KILL_CONNECTION; // Some fatal error
/* Some fatal error */
di->dead= 1;
thd->killed= THD::KILL_CONNECTION;
}
}
di->status=0;
@ -1175,7 +1179,8 @@ end:
close_thread_tables(thd); // Free the table
di->table=0;
di->dead=thd->killed= THD::KILL_CONNECTION; // If error
di->dead= 1; // If error
thd->killed= THD::KILL_CONNECTION; // If error
pthread_cond_broadcast(&di->cond_client); // Safety
pthread_mutex_unlock(&di->mutex);