summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorunknown <mats@mysql.com>2006-03-08 21:49:49 +0100
committerunknown <mats@mysql.com>2006-03-08 21:49:49 +0100
commit4286a0ada243ccca0eb78b53adced35bc68f3690 (patch)
tree42a1a803b9e726b1fe7abc1de0be5b1cb040e35c /sql/log_event.h
parentb59f3f581c4f34dbfb48dc335bd921fbc2d67452 (diff)
downloadmariadb-git-4286a0ada243ccca0eb78b53adced35bc68f3690.tar.gz
WL#3023 (Use locks in a statement-like manner):
Changes according to review comments. sql/log.cc: Moving a comment. sql/log_event.cc: Adding a note that the solution is a temporary solution. sql/log_event.h: Removing dead code. sql/sql_class.cc: Removing dead code. Adding a TODO comment.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 9a5fb7cd73b..d6ce354fbdf 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -1833,36 +1833,6 @@ public:
return m_rows_buf && m_cols.bitmap;
}
- /*
- If there is no table map active for the event, write one to the
- binary log.
-
- LOCK_log has to be aquired before calling this function.
-
- PARAMETERS
- thd - Thread to use when writing the table map
-
- RETURN VALUE
- Error code, or zero if write succeeded.
- */
-#if !defined(MYSQL_CLIENT) && defined(HAVE_ROW_BASED_REPLICATION)
-#if 0
- int maybe_write_table_map(THD *thd, IO_CACHE *file, MYSQL_LOG *log) const
- {
- /*
- N.B., get_cache_stmt() returns the value of 'using_trans' that
- was provided to the constructor, i.e., get_cache_stmt() == true
- if and only if the table is transactional.
- */
-
- int result= 0;
- if (!log->is_table_mapped(m_table))
- result= log->write_table_map(thd, file, m_table, get_cache_stmt());
- return result;
- }
-#endif
-#endif
-
uint m_row_count; /* The number of rows added to the event */
protected: