diff options
author | Nikita Malyavin <nikitamalyavin@gmail.com> | 2018-06-21 16:46:11 +1000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-09-21 15:05:54 +0200 |
commit | c16a54c02e1882a07f48e58e788674e9ed3be129 (patch) | |
tree | 4a8f6591189403299ffd24a7bbdee7e3c038fad9 /sql/handler.h | |
parent | 8893d199efae16c8072cdbbe35c808a12d0583e5 (diff) | |
download | mariadb-git-c16a54c02e1882a07f48e58e788674e9ed3be129.tar.gz |
MDEV-16429: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' fails upon attempt to update virtual column on partitioned versioned table
When using buffered sort in `UPDATE`, keyread is used. In this case,
`TABLE::update_virtual_field` should be aborted, but it actually isn't,
because it is called not with a top-level handler, but with the one that
is actually going to access the disk. Here the problemm is issued with
partitioning, so the solution is to recursively mark for keyread all the
underlying partition handlers.
* ha_partition: update keyread state for child partitions
Closes #800
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/handler.h b/sql/handler.h index e3ab87b941b..8f31f741eab 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -3097,7 +3097,7 @@ public: bool keyread_enabled() { return keyread < MAX_KEY; } int ha_start_keyread(uint idx) { - int res= keyread_enabled() ? 0 : extra(HA_EXTRA_KEYREAD); + int res= keyread_enabled() ? 0 : extra_opt(HA_EXTRA_KEYREAD, idx); keyread= idx; return res; } @@ -3609,7 +3609,7 @@ public: { return 0; } virtual int extra(enum ha_extra_function operation) { return 0; } - virtual int extra_opt(enum ha_extra_function operation, ulong cache_size) + virtual int extra_opt(enum ha_extra_function operation, ulong arg) { return extra(operation); } /** |