Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/5.5' into 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cvicentiu committed Feb 2, 2018
2 parents 96cb428 + 7a63ffa commit 0765caa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mysys/mf_iocache.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
else
{
/* 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

Expand Down
1 change: 1 addition & 0 deletions sql/sql_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2539,6 +2539,7 @@ void Query_cache::init()
*/
if (global_system_variables.query_cache_type == 0)
{
m_cache_status= DISABLE_REQUEST;
free_cache();
m_cache_status= DISABLED;
}
Expand Down
2 changes: 2 additions & 0 deletions sql/sql_update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,8 @@ int mysql_update(THD *thd,
if (reinit_io_cache(&tempfile,READ_CACHE,0L,0,0))
error=1; /* purecov: inspected */
select->file=tempfile; // Read row ptrs from this file
// select->file was copied, update self-references.
setup_io_cache(&select->file);
if (error >= 0)
goto err;
}
Expand Down

0 comments on commit 0765caa

Please sign in to comment.