Commit dcc0baf5 authored by Monty's avatar Monty

Don't print "Trying to delete tablespace several 10x times per second"

Now this InnoDB message is printed after one second of stalled operations
and then every 10 seconds
parent 4ea171ff
...@@ -2024,7 +2024,8 @@ static ulint fil_check_pending_ops(const fil_space_t* space, ulint count) ...@@ -2024,7 +2024,8 @@ static ulint fil_check_pending_ops(const fil_space_t* space, ulint count)
if (ulint n_pending_ops = space->n_pending_ops) { if (ulint n_pending_ops = space->n_pending_ops) {
if (count > 5000) { /* Give a warning every 10 second, starting after 1 second */
if ((count % 500) == 50) {
ib::warn() << "Trying to delete" ib::warn() << "Trying to delete"
" tablespace '" << space->name " tablespace '" << space->name
<< "' but there are " << n_pending_ops << "' but there are " << n_pending_ops
...@@ -2071,7 +2072,8 @@ fil_check_pending_io( ...@@ -2071,7 +2072,8 @@ fil_check_pending_io(
ut_a(!(*node)->being_extended); ut_a(!(*node)->being_extended);
if (count > 1000) { /* Give a warning every 10 second, starting after 1 second */
if ((count % 500) == 50) {
ib::warn() << "Trying to delete" ib::warn() << "Trying to delete"
" tablespace '" << space->name " tablespace '" << space->name
<< "' but there are " << "' but there are "
...@@ -2130,7 +2132,7 @@ fil_check_pending_operations( ...@@ -2130,7 +2132,7 @@ fil_check_pending_operations(
mutex_exit(&fil_system.mutex); mutex_exit(&fil_system.mutex);
if (count > 0) { if (count > 0) {
os_thread_sleep(20000); os_thread_sleep(20000); // Wait 0.02 seconds
} }
mutex_enter(&fil_system.mutex); mutex_enter(&fil_system.mutex);
...@@ -2160,7 +2162,7 @@ fil_check_pending_operations( ...@@ -2160,7 +2162,7 @@ fil_check_pending_operations(
break; break;
} }
os_thread_sleep(20000); os_thread_sleep(20000); // Wait 0.02 seconds
mutex_enter(&fil_system.mutex); mutex_enter(&fil_system.mutex);
} }
......
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