mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 14:45:31 +02:00
Change update_auto_increment to return 1 if get_auto_increment() returned ~(ulonglong)
This makes it easier to give an error in the handler if there was a problem generating an auto-increment value mysys/thr_alarm.c: Remove warning from valgrind sql/item_strfunc.cc: Fixed indentation tests/mysql_client_test.c: Removed compiler warning
This commit is contained in:
parent
2398f9d6f2
commit
ef342b743e
5 changed files with 27 additions and 11 deletions
|
|
@ -85,7 +85,7 @@ void init_thr_alarm(uint max_alarms)
|
|||
#else
|
||||
{
|
||||
struct sigaction sact;
|
||||
sact.sa_flags = 0;
|
||||
bzero((char*) &sact, sizeof(sact));
|
||||
sact.sa_handler = thread_alarm;
|
||||
sigaction(THR_CLIENT_ALARM, &sact, (struct sigaction*) 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue