summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index 6365df8cec5..3f06e108f6d 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -2,8 +2,7 @@
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,6 +20,8 @@
#include "rpl_tblmap.h"
+struct RPL_TABLE_LIST;
+
/****************************************************************************
@@ -289,7 +290,7 @@ typedef struct st_relay_log_info
group_relay_log_pos);
}
- TABLE_LIST *tables_to_lock; /* RBR: Tables to lock */
+ RPL_TABLE_LIST *tables_to_lock; /* RBR: Tables to lock */
uint tables_to_lock_count; /* RBR: Count of tables to lock */
table_mapping m_table_map; /* RBR: Mapping table-id to table */
@@ -303,16 +304,7 @@ typedef struct st_relay_log_info
bool cached_charset_compare(char *charset) const;
void cleanup_context(THD *, bool);
- void clear_tables_to_lock() {
- while (tables_to_lock)
- {
- char *to_free= reinterpret_cast<gptr>(tables_to_lock);
- tables_to_lock= tables_to_lock->next_global;
- tables_to_lock_count--;
- my_free(to_free, MYF(MY_WME));
- }
- DBUG_ASSERT(tables_to_lock == NULL && tables_to_lock_count == 0);
- }
+ void clear_tables_to_lock();
/*
Used by row-based replication to detect that it should not stop at