Commit 289b493d authored by unknown's avatar unknown

Maria - fixes to the pagecache unit tests (which started to print

"x threads didn't exit" today after my merge); the main() thread
was calling my_init() and my_thread_global_init() which is redudant;
it was not calling my_end() though it's needed.


unittest/mysys/mf_pagecache_consist.c:
  program already calls my_init(), which calls my_thread_global_init(),
  so no need for my_thread_global_init() (double call caused the main()
  thread to wait for itself thus timing out and printing
  "x threads didn't exit".
  my_thread_global_end() is not enough, as we call my_init() we must call
  my_end() (which calls my_thread_global_end()).
unittest/mysys/mf_pagecache_single.c:
  program already calls my_init(), which calls my_thread_global_init(),
  so no need for my_thread_global_init() (double call caused the main()
  thread to wait for itself thus timing out and printing
  "x threads didn't exit".
  my_thread_global_end() is not enough, as we call my_init() we must call
  my_end() (which calls my_thread_global_end()).
parent 4d61bad4
......@@ -336,9 +336,6 @@ int main(int argc, char **argv __attribute__((unused)))
VOID(thr_setconcurrency(2));
#endif
my_thread_global_init();
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
PAGE_SIZE, 0)) == 0)
{
......@@ -427,7 +424,7 @@ int main(int argc, char **argv __attribute__((unused)))
exit(1);
}
/*my_delete(file1_name, MYF(0));*/
my_thread_global_end();
my_end(0);
DBUG_PRINT("info", ("file1 (%d) closed", file1.file));
......
......@@ -515,8 +515,6 @@ int main(int argc, char **argv __attribute__((unused)))
VOID(thr_setconcurrency(2));
#endif
my_thread_global_init();
plan(12);
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
......@@ -569,7 +567,7 @@ int main(int argc, char **argv __attribute__((unused)))
exit(1);
}
/*my_delete(file1_name, MYF(0));*/
my_thread_global_end();
my_end(0);
DBUG_PRINT("info", ("file1 (%d) closed", file1.file));
......
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