summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-11-05 22:09:58 +0200
committerMonty <monty@mariadb.org>2015-11-10 13:46:56 +0200
commit93d1e5ce0b841bedbc071da85995f15611ed3d34 (patch)
tree7f6f567cbf7b0ef3e17345f271cefed81f098f63 /sql/log_event.h
parentcb4737cb4e7df6c43de9d47483f17f8e2e7fa24b (diff)
downloadmariadb-git-93d1e5ce0b841bedbc071da85995f15611ed3d34.tar.gz
table->write_set was changed if binary logging was used, which caused the
changes in query execution plans. Fixed by introducing table->rpl_write_set which holds which columns should be stored in the binary log. Other things: - Removed some not needed references to read_set and write_set to make code really changing read_set and write_set easier to read (in opt_range.cc) - Added error handling of failed unpack_current_row() - Added missing call to mark_columns_needed_for_insert() for DELAYED INSERT - Removed not used functions in_read_set() and in_write_set() - In rpl_record.cc, removed not used variable error
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 94f54d6ccc3..498aa8d8d28 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -4304,7 +4304,7 @@ public:
bitmap_cmp return logic).
*/
- virtual bool read_write_bitmaps_cmp(TABLE *table)
+ bool read_write_bitmaps_cmp(TABLE *table)
{
bool res= FALSE;
@@ -4315,10 +4315,10 @@ public:
break;
case UPDATE_ROWS_EVENT:
res= (bitmap_cmp(get_cols(), table->read_set) &&
- bitmap_cmp(get_cols_ai(), table->write_set));
+ bitmap_cmp(get_cols_ai(), table->rpl_write_set));
break;
case WRITE_ROWS_EVENT:
- res= bitmap_cmp(get_cols(), table->write_set);
+ res= bitmap_cmp(get_cols(), table->rpl_write_set);
break;
default:
/*