=== modified file 'sql/item_func.cc'
--- sql/item_func.cc	2013-04-17 13:17:01 +0000
+++ sql/item_func.cc	2013-05-23 05:34:13 +0000
@@ -4392,7 +4392,6 @@
   thd->mysys_var->current_cond=  &cond;
 
   error= 0;
-  thd_wait_begin(thd, THD_WAIT_SLEEP);
   while (!thd->killed)
   {
     error= timed_cond.wait(&cond, &LOCK_item_func_sleep);
@@ -4400,7 +4399,6 @@
       break;
     error= 0;
   }
-  thd_wait_end(thd);
   mysql_mutex_unlock(&LOCK_item_func_sleep);
   mysql_mutex_lock(&thd->mysys_var->mutex);
   thd->mysys_var->current_mutex= 0;

