1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
Monty
2015-11-05 22:09:58 +02:00
parent cb4737cb4e
commit 93d1e5ce0b
10 changed files with 112 additions and 93 deletions

View File

@ -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 */