From 340ac8128ac3e43b41eb3a55f0bbc8fa89f1fce7 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 17 May 2016 16:54:34 +1000 Subject: [PATCH] innodb buf_resize_thread - release mutexes when no change The Innodb buf_resize_thread fails to release the mutexes when the old and new innodb buffer pool sizes are the same. While the innodb_buffer_pool_size_validate does actually do the same check, its theoricly possible to resize the pool twice and trigger this condition if both changes occur before innodb_buffer_pool_size_update is called the first time. --- storage/innobase/buf/buf0buf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index 33bf2b2..09d501e 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -3022,6 +3022,7 @@ DECLARE_THREAD(buf_resize_thread)( buf_resize_status(sout.str().c_str()); /* nothing to do */ + buf_pool_mutex_exit_all(); continue; } buf_pool_mutex_exit_all();