mirror of
https://github.com/MariaDB/server.git
synced 2025-06-12 01:53:02 +03:00
API change: mysql_shutdown() now requires a 2nd argument, the shutdown level.
mysqld >=4.1.3 will however understand shutdown requests sent by clients <4.1.3. And mysqld <4.1.3 will understand shutdown requests sent by clients >=4.1.3 (it will ignore the level). Those shutdown level are just PLACEHOLDERS now. So this change is just to make the 4.1 API suitable before it is frozen. Later we will actually implement the shutdown levels.
This commit is contained in:
@ -1290,8 +1290,7 @@ mysql_shutdown(MYSQL *mysql, enum enum_shutdown_level shutdown_level)
|
||||
uchar level[1];
|
||||
level[0]= (uchar) shutdown_level;
|
||||
DBUG_ENTER("mysql_shutdown");
|
||||
DBUG_RETURN(simple_command(mysql, COM_SHUTDOWN,
|
||||
&level, 1, 0));
|
||||
DBUG_RETURN(simple_command(mysql, COM_SHUTDOWN, (char *)level, 1, 0));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user