diff --git a/storage/maria/ma_pagecache.c b/storage/maria/ma_pagecache.c index efad5ec75f3..119b5310f49 100644 --- a/storage/maria/ma_pagecache.c +++ b/storage/maria/ma_pagecache.c @@ -3710,6 +3710,7 @@ restart: { /* block is unregistered in read_big_block */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); + dec_counter_for_resize_op(pagecache); DBUG_PRINT("restart", ("big block fail, restarting...")); goto restart; } @@ -3754,6 +3755,7 @@ restart: unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); + dec_counter_for_resize_op(pagecache); DBUG_PRINT("info", ("restarting...")); goto restart; } @@ -4176,6 +4178,7 @@ restart: unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); + dec_counter_for_resize_op(pagecache); DBUG_PRINT("info", ("restarting...")); goto restart; }