===== sp_cache.cc 1.10 vs edited ===== *** /home/psergey/mysql-5.0-bug12228-orig/BitKeeper/tmp/bk_sp_cache.cc-1.10_RBONdT 2005-06-05 14:19:12 +00:00 --- edited/sp_cache.cc 2005-08-03 05:40:24 +00:00 *************** *** 53,58 **** --- 53,70 ---- { ulong v; + //psergey{ + THD *thd= current_thd; + const char *q="call p1()"; + if (!strncmp(q, thd->query, strlen(q))) + { + FILE *in; + while (!(in= fopen("/tmp/wait_for_me", "rt"))) + sleep(1); + fclose(in); + } + //}psergey + pthread_mutex_lock(&Cversion_lock); // LOCK v= Cversion; pthread_mutex_unlock(&Cversion_lock); // UNLOCK