diff options
author | heikki@hundin.mysql.fi <> | 2002-11-16 01:59:04 +0200 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2002-11-16 01:59:04 +0200 |
commit | 8a7d6cd2ab9e2c2723943968dcaf0f451b810d2b (patch) | |
tree | 142636ab171bbbe2861a08dee5f3238c6fb0b8f8 /innobase | |
parent | 7e7027ae235762a292c62742a206a5b96639f7c5 (diff) | |
download | mariadb-git-8a7d6cd2ab9e2c2723943968dcaf0f451b810d2b.tar.gz |
srv0start.c:
Print an error message if someone tries to call InnoDB startip more than once during process lifetime
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/srv/srv0start.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/innobase/srv/srv0start.c b/innobase/srv/srv0start.c index d006b4ec915..d6e8a8dcb4a 100644 --- a/innobase/srv/srv0start.c +++ b/innobase/srv/srv0start.c @@ -56,6 +56,8 @@ Created 2/16/1996 Heikki Tuuri #include "srv0start.h" #include "que0que.h" +ibool srv_start_has_been_called = FALSE; + ulint srv_sizeof_trx_t_in_ha_innodb_cc; ibool srv_startup_is_before_trx_rollback_phase = FALSE; @@ -971,6 +973,20 @@ innobase_start_or_create_for_mysql(void) return(DB_ERROR); } + /* Since InnoDB does not currently clean up all its internal data + structures in MySQL Embedded Server Library server_end(), we + print an error message if someone tries to start up InnoDB a + second time during the process lifetime. */ + + if (srv_start_has_been_called) { + fprintf(stderr, +"InnoDB: Error:startup called second time during the process lifetime.\n" +"InnoDB: In the MySQL Embedded Server Library you cannot call server_init()\n" +"InnoDB: more than once during the process lifetime.\n"); + } + + srv_start_has_been_called = TRUE; + log_do_write = TRUE; /* yydebug = TRUE; */ |