mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SCRUM
embedded library trimming include/my_global.h: HAVE_REPLICATION & HAVE_EXTERNAL_CLIENT macro definitions libmysqld/lib_sql.cc: Protocol:: methods implementation for embedded case sql/field.cc: geometry type methods implementations sql/ha_berkeley.cc: set_nfields deletion sql/ha_innodb.cc: macro changed sql/ha_myisam.cc: set_nfields deletion sql/ha_myisam.h: code #ifdef-ed sql/item.cc: bugfix sql/item_func.cc: macro changed sql/item_strfunc.cc: superfluous code deleted sql/log.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/log_event.cc: #ifdef constructions changed sql/log_event.h: #ifdef-s changed sql/mf_iocache.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/mini_client.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/mysql_priv.h: code removation sql/mysqld.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/opt_range.cc: code trimming sql/protocol.cc: net_store_data becomes a member of Protocol sql/protocol.h: changes to make Protocol working in embedded library sql/repl_failsafe.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/repl_failsafe.h: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/set_var.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/slave.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/slave.h: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/sql_parse.cc: code trimming sql/sql_prepare.cc: comment added sql/sql_repl.cc: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/sql_repl.h: HAVE_REPLICATION instead of EMBEDDED_LIBRARY sql/sql_show.cc: mysql_list_processes to work in embedded library sql/sql_table.cc: set_nfields deletion
This commit is contained in:
13
sql/log.cc
13
sql/log.cc
@ -24,7 +24,6 @@
|
||||
|
||||
#include "mysql_priv.h"
|
||||
#include <mysql.h>
|
||||
|
||||
#include "sql_acl.h"
|
||||
#include "sql_repl.h"
|
||||
|
||||
@ -614,7 +613,7 @@ err:
|
||||
LOG_INFO_IO Got IO error while reading file
|
||||
*/
|
||||
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
#ifdef HAVE_REPLICATION
|
||||
|
||||
int MYSQL_LOG::purge_first_log(struct st_relay_log_info* rli)
|
||||
{
|
||||
@ -745,7 +744,7 @@ err:
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
#endif /* EMBEDDED_LIBRARY */
|
||||
#endif /* HAVE_REPLICATION */
|
||||
|
||||
|
||||
/*
|
||||
@ -1056,7 +1055,7 @@ bool MYSQL_LOG::write(Log_event* event_info)
|
||||
#else
|
||||
IO_CACHE *file = &log_file;
|
||||
#endif
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
#ifdef HAVE_REPLICATION
|
||||
if ((thd && !(thd->options & OPTION_BIN_LOG) &&
|
||||
(thd->master_access & SUPER_ACL)) ||
|
||||
(local_db && !db_ok(local_db, binlog_do_db, binlog_ignore_db)))
|
||||
@ -1065,7 +1064,7 @@ bool MYSQL_LOG::write(Log_event* event_info)
|
||||
DBUG_PRINT("error",("!db_ok"));
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
#endif /* EMBEDDED_LIBRARY */
|
||||
#endif /* HAVE_REPLICATION */
|
||||
|
||||
error=1;
|
||||
/*
|
||||
@ -1429,7 +1428,7 @@ void MYSQL_LOG::close(bool exiting)
|
||||
DBUG_PRINT("enter",("exiting: %d", (int) exiting));
|
||||
if (is_open())
|
||||
{
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
#ifdef HAVE_REPLICATION
|
||||
if (log_type == LOG_BIN && !no_auto_events && exiting)
|
||||
{
|
||||
Stop_log_event s;
|
||||
@ -1437,7 +1436,7 @@ void MYSQL_LOG::close(bool exiting)
|
||||
s.write(&log_file);
|
||||
signal_update();
|
||||
}
|
||||
#endif /* EMBEDDED_LIBRARY */
|
||||
#endif /* HAVE_REPLICATION */
|
||||
end_io_cache(&log_file);
|
||||
if (my_close(log_file.file,MYF(0)) < 0 && ! write_error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user