summaryrefslogtreecommitdiff
path: root/sql/my_apc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/my_apc.cc')
-rw-r--r--sql/my_apc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/my_apc.cc b/sql/my_apc.cc
index 06e4fdac9a3..a5c3d2a2822 100644
--- a/sql/my_apc.cc
+++ b/sql/my_apc.cc
@@ -132,6 +132,8 @@ int Apc_target::wait_for_completion(THD *caller_thd, Call_request *apc_request,
struct timespec abstime;
const int timeout= timeout_sec;
set_timespec(abstime, timeout);
+
+ DBUG_EXECUTE_IF("apc_timeout", set_timespec_nsec(abstime, 1000000););
int res = 1;
int wait_res= 0;
PSI_stage_info old_stage;