diff options
author | Monty <monty@mariadb.org> | 2015-11-05 22:09:58 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-11-10 13:46:56 +0200 |
commit | 93d1e5ce0b841bedbc071da85995f15611ed3d34 (patch) | |
tree | 7f6f567cbf7b0ef3e17345f271cefed81f098f63 /sql/sql_insert.cc | |
parent | cb4737cb4e7df6c43de9d47483f17f8e2e7fa24b (diff) | |
download | mariadb-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/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 488826acd70..8d36a763b90 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2867,6 +2867,8 @@ pthread_handler_t handle_delayed_insert(void *arg) /* Tell client that the thread is initialized */ mysql_cond_signal(&di->cond_client); + di->table->mark_columns_needed_for_insert(); + /* Now wait until we get an insert or lock to handle */ /* We will not abort as long as a client thread uses this thread */ |