1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Merge 10.0 into 10.1

This commit is contained in:
Marko Mäkelä
2018-02-03 12:53:30 +02:00
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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;
} }