Commit 8812a2f8 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.0 into 10.1

parents ec03390f 0765caa0
...@@ -300,7 +300,7 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize, ...@@ -300,7 +300,7 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
else else
{ {
/* Clear mutex so that safe_mutex will notice that it's not initialized */ /* Clear mutex so that safe_mutex will notice that it's not initialized */
bzero((char*) &info->append_buffer_lock, sizeof(info)); bzero((char*) &info->append_buffer_lock, sizeof(info->append_buffer_lock));
} }
#endif #endif
......
...@@ -701,6 +701,8 @@ int mysql_update(THD *thd, ...@@ -701,6 +701,8 @@ int mysql_update(THD *thd,
if (reinit_io_cache(&tempfile,READ_CACHE,0L,0,0)) if (reinit_io_cache(&tempfile,READ_CACHE,0L,0,0))
error=1; /* purecov: inspected */ error=1; /* purecov: inspected */
select->file=tempfile; // Read row ptrs from this file select->file=tempfile; // Read row ptrs from this file
// select->file was copied, update self-references.
setup_io_cache(&select->file);
if (error >= 0) if (error >= 0)
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment