mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
5.5-merge
This commit is contained in:
@ -105,12 +105,20 @@ int delegates_init()
|
||||
transaction_delegate= new (place_trans_mem) Trans_delegate;
|
||||
|
||||
if (!transaction_delegate->is_inited())
|
||||
{
|
||||
sql_print_error("Initialization of transaction delegates failed. "
|
||||
"Please report a bug.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
binlog_storage_delegate= new (place_storage_mem) Binlog_storage_delegate;
|
||||
|
||||
if (!binlog_storage_delegate->is_inited())
|
||||
{
|
||||
sql_print_error("Initialization binlog storage delegates failed. "
|
||||
"Please report a bug.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_REPLICATION
|
||||
void *place_transmit_mem= transmit_mem.data;
|
||||
@ -119,16 +127,29 @@ int delegates_init()
|
||||
binlog_transmit_delegate= new (place_transmit_mem) Binlog_transmit_delegate;
|
||||
|
||||
if (!binlog_transmit_delegate->is_inited())
|
||||
{
|
||||
sql_print_error("Initialization of binlog transmit delegates failed. "
|
||||
"Please report a bug.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
binlog_relay_io_delegate= new (place_relay_io_mem) Binlog_relay_IO_delegate;
|
||||
|
||||
if (!binlog_relay_io_delegate->is_inited())
|
||||
{
|
||||
sql_print_error("Initialization binlog relay IO delegates failed. "
|
||||
"Please report a bug.");
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (pthread_key_create(&RPL_TRANS_BINLOG_INFO, NULL))
|
||||
{
|
||||
sql_print_error("Error while creating pthread specific data key for replication. "
|
||||
"Please report a bug.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user