summaryrefslogtreecommitdiff
path: root/sql/log_event_old.h
diff options
context:
space:
mode:
authorunknown <mats@kindahl-laptop.dnsalias.net>2007-12-05 20:00:14 +0100
committerunknown <mats@kindahl-laptop.dnsalias.net>2007-12-05 20:00:14 +0100
commit7a5f3f12bc45f7f1db9ba97be0337dfd256b96d3 (patch)
tree765c8d4850f2afc52ed14acacbda74ef2762a538 /sql/log_event_old.h
parenta196adacfdd06e556e042dd5a072c9b0a8abcb3a (diff)
downloadmariadb-git-7a5f3f12bc45f7f1db9ba97be0337dfd256b96d3.tar.gz
BUG#31583 (5.1-telco-6.1 -> 5.1.22. Slave returns Error in unknown event):
In the patch for BUG#21842, the code for handling old rows events were refactored. There were a bug in the refactored code (possibly introduced after the patch for BUG#21842) that caused caused the refactored old events to read a columns bitmap after image even though there is no such bitmap for old events. As a result, the reading got out of sync, and started reading invalid data. This patch removes all trace of the after image column bitmap from the refactored old events and removes functions that are no longer needed because they are empty. sql/log_event.cc: Adding debug printouts and adding old rows events names to output so that they are not printed as unknown events. sql/log_event_old.cc: Adding debug printouts to see how the old events are partitioned when being decoded. Removing all traces of the column bitmap for the after image in the old events since there is none. Removing the following functions since they are no longer needed: - Update_rows_log_event_old::init() - Update_rows_log_event_old::~Update_rows_log_event_old() Removing unused local variable. sql/log_event_old.h: Removing all traces of the column bitmap for the after image in the old events since there is none. Removing the following functions since they are no longer needed: - Update_rows_log_event_old::init() - Update_rows_log_event_old::is_valid() - Update_rows_log_event_old::~Update_rows_log_event_old() Removing unused local variable. mysql-test/suite/bugs/r/rpl_bug31583.result: New BitKeeper file ``mysql-test/suite/bugs/r/rpl_bug31583.result'' mysql-test/suite/bugs/t/rpl_bug31583.test: New BitKeeper file ``mysql-test/suite/bugs/t/rpl_bug31583.test''
Diffstat (limited to 'sql/log_event_old.h')
-rw-r--r--sql/log_event_old.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/sql/log_event_old.h b/sql/log_event_old.h
index efb2be29ee4..719802a80fb 100644
--- a/sql/log_event_old.h
+++ b/sql/log_event_old.h
@@ -175,14 +175,6 @@ protected:
ulong m_table_id; /* Table ID */
MY_BITMAP m_cols; /* Bitmap denoting columns available */
ulong m_width; /* The width of the columns bitmap */
- /*
- Bitmap for columns available in the after image, if present. These
- fields are only available for Update_rows events. Observe that the
- width of both the before image COLS vector and the after image
- COLS vector is the same: the number of columns of the table on the
- master.
- */
- MY_BITMAP m_cols_ai;
ulong m_master_reclength; /* Length of record on master side */
@@ -442,12 +434,8 @@ public:
Update_rows_log_event_old(THD*, TABLE*, ulong table_id,
MY_BITMAP const *cols,
bool is_transactional);
-
- void init(MY_BITMAP const *cols);
#endif
- virtual ~Update_rows_log_event_old();
-
#ifdef HAVE_REPLICATION
Update_rows_log_event_old(const char *buf, uint event_len,
const Format_description_log_event *description_event);
@@ -466,11 +454,6 @@ public:
}
#endif
- virtual bool is_valid() const
- {
- return Old_rows_log_event::is_valid() && m_cols_ai.bitmap;
- }
-
protected:
#ifdef MYSQL_CLIENT
void print(FILE *file, PRINT_EVENT_INFO *print_event_info);