Commit 544dd2b9 authored by marko's avatar marko

branches/zip: fil_close(): Add #ifndef UNIV_HOTBACKUP around a debug

assertion on mutex.magic_n.  InnoDB Hot Backup is a single-threaded
program and does not contain mutexes.  This change allows InnoDB Hot
Backup to be compiled with UNIV_DEBUG.

Suggested by Michael Izioumtchenko.
parent 3d5a1741
...@@ -4786,8 +4786,10 @@ void ...@@ -4786,8 +4786,10 @@ void
fil_close(void) fil_close(void)
/*===========*/ /*===========*/
{ {
#ifndef UNIV_HOTBACKUP
/* The mutex should already have been freed. */ /* The mutex should already have been freed. */
ut_ad(fil_system->mutex.magic_n == 0); ut_ad(fil_system->mutex.magic_n == 0);
#endif /* !UNIV_HOTBACKUP */
hash_table_free(fil_system->spaces); hash_table_free(fil_system->spaces);
......
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