summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorunknown <hf@deer.mysql.r18.ru>2002-12-16 17:33:29 +0400
committerunknown <hf@deer.mysql.r18.ru>2002-12-16 17:33:29 +0400
commit632717fd8d70ff187621df8a0839678ceae19ab5 (patch)
treeac62ff3cde5a13932e6d512787093827232af630 /sql/log_event.h
parente9525947d4eaf19e2edb17d8c688fe6ffba02502 (diff)
downloadmariadb-git-632717fd8d70ff187621df8a0839678ceae19ab5.tar.gz
Big purge about embedded library (scrum)
client/mysql.cc: #ifdef EMBEDDED_LIBRARY added client/mysqltest.c: #ifdef EMBEDDED_LIBRARY added include/mysql.h: MYSQL structure changed for embedded case include/mysql_com.h: NET structure changed for embedded case include/violite.h: no need to special vio types libmysqld/embedded_priv.h: superfluous functions removed libmysqld/lib_sql.cc: several modifications libmysqld/lib_vio.c: file should be removed libmysqld/libmysqld.c: several modifications sql/ha_berkeley.cc: modification for embedded case sql/ha_innodb.cc: modifications for embedded case sql/ha_myisam.cc: modifications for embedded case sql/item_func.cc: modifications for embedded case sql/log.cc: #ifdef-ed parts of file which don't work in embedded case sql/log_event.cc: #ifdef-ed parts of file which don't work in embedded case sql/log_event.h: #ifdef-ed parts of file which don't work in embedded case sql/mf_iocache.cc: file doesn't work in embedded case sql/mini_client.cc: file should be removed from embedded library sql/mysqld.cc: several modifications sql/net_pkg.cc: #ifdef-ed functions which can't work in embedded case sql/net_serv.cc: file doesn't work in embedded case sql/repl_failsafe.cc: no replication in embedded case sql/repl_failsafe.h: no replication in embedded case sql/set_var.cc: #ifdef-ed variables which have no sense in embedded library sql/set_var.h: #ifdef-ed variables which have no sense in embedded library sql/slave.cc: no replication in embedded library sql/slave.h: no replication in embedded library sql/sql_acl.cc: modifications for embedded case sql/sql_cache.cc: modifications for embedded case sql/sql_class.cc: modifications for embedded case sql/sql_class.h: THD structure modified for embedded case sql/sql_db.cc: modification for embedded case sql/sql_error.cc: modification for embedded case sql/sql_help.cc: modification for embedded case sql/sql_load.cc: #ifdef-ed code which doesn't work in embedded case sql/sql_parse.cc: #ifdef-ed code which doesn't work in embedded case sql/sql_prepare.cc: #ifdef-ed code which doesn't work in embedded case sql/sql_repl.cc: no replication in embedded library sql/sql_repl.h: no replication in embedded library sql/sql_select.cc: query cache don't work now in embedded library sql/sql_show.cc: modifications for embedded case
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h39
1 files changed, 36 insertions, 3 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 20a134ab3cc..db5b1790123 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -267,10 +267,12 @@ public:
static int read_log_event(IO_CACHE* file, String* packet,
pthread_mutex_t* log_lock);
void set_log_pos(MYSQL_LOG* log);
- virtual void pack_info(String* packet);
- int net_send(THD* thd, const char* log_name, my_off_t pos);
static void init_show_field_list(List<Item>* field_list);
+#ifndef EMBEDDED_LIBRARY
+ int net_send(THD* thd, const char* log_name, my_off_t pos);
+ virtual void pack_info(String* packet);
virtual int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
virtual const char* get_db()
{
return thd ? thd->db : 0;
@@ -355,8 +357,10 @@ public:
Query_log_event(THD* thd_arg, const char* query_arg, ulong query_length,
bool using_trans);
const char* get_db() { return db; }
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -383,6 +387,7 @@ public:
}
};
+#ifndef EMBEDDED_LIBRARY
/*****************************************************************************
@@ -404,8 +409,10 @@ public:
#ifndef MYSQL_CLIENT
Slave_log_event(THD* thd_arg, struct st_relay_log_info* rli);
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -418,6 +425,8 @@ public:
int write_data(IO_CACHE* file );
};
+#endif /* EMBEDDED_LIBRARY */
+
/*****************************************************************************
@@ -454,13 +463,15 @@ public:
List<Item>& fields_arg, enum enum_duplicates handle_dup,
bool using_trans);
void set_fields(List<Item> &fields_arg);
- void pack_info(String* packet);
const char* get_db() { return db; }
+#ifndef EMBEDDED_LIBRARY
+ void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli)
{
return exec_event(thd->slave_net,rli);
}
int exec_event(NET* net, struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -507,8 +518,10 @@ public:
created = (uint32) when;
memcpy(server_version, ::server_version, ST_SERVER_VER_LEN);
}
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -542,8 +555,10 @@ public:
Intvar_log_event(THD* thd_arg,uchar type_arg, ulonglong val_arg)
:Log_event(),val(val_arg),type(type_arg)
{}
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -574,8 +589,10 @@ class Rand_log_event: public Log_event
Rand_log_event(THD* thd_arg, ulonglong seed1_arg, ulonglong seed2_arg)
:Log_event(thd_arg,0,0),seed1(seed1_arg),seed2(seed2_arg)
{}
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -594,13 +611,17 @@ class Rand_log_event: public Log_event
Stop Log Event class
****************************************************************************/
+#ifndef EMBEDDED_LIBRARY
+
class Stop_log_event: public Log_event
{
public:
#ifndef MYSQL_CLIENT
Stop_log_event() :Log_event()
{}
+#ifndef EMBEDDED_LIBRARY
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -613,6 +634,8 @@ public:
bool is_valid() { return 1; }
};
+#endif /* EMBEDDED_LIBRARY */
+
/*****************************************************************************
@@ -636,8 +659,10 @@ public:
pos(pos_arg),ident_len(ident_len_arg ? ident_len_arg :
(uint) strlen(new_log_ident_arg)), alloced(0)
{}
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -683,8 +708,10 @@ public:
enum enum_duplicates handle_dup,
char* block_arg, uint block_len_arg,
bool using_trans);
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -733,8 +760,10 @@ public:
#ifndef MYSQL_CLIENT
Append_block_log_event(THD* thd, char* block_arg,
uint block_len_arg, bool using_trans);
+#ifndef EMBEDDED_LIBRARY
int exec_event(struct st_relay_log_info* rli);
void pack_info(String* packet);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -759,8 +788,10 @@ public:
#ifndef MYSQL_CLIENT
Delete_file_log_event(THD* thd, bool using_trans);
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif
@@ -785,8 +816,10 @@ public:
#ifndef MYSQL_CLIENT
Execute_load_log_event(THD* thd, bool using_trans);
+#ifndef EMBEDDED_LIBRARY
void pack_info(String* packet);
int exec_event(struct st_relay_log_info* rli);
+#endif /* EMBEDDED_LIBRARY */
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
#endif