diff options
Diffstat (limited to 'src/lib/mysql/mysql_connection.cc')
-rw-r--r-- | src/lib/mysql/mysql_connection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mysql/mysql_connection.cc b/src/lib/mysql/mysql_connection.cc index 2e4020fa2d..ecf36d8824 100644 --- a/src/lib/mysql/mysql_connection.cc +++ b/src/lib/mysql/mysql_connection.cc @@ -23,7 +23,7 @@ using namespace std; namespace isc { namespace db { -bool MySqlHolder::atexit_ = false; +bool MySqlHolder::atexit_ = []{atexit([]{mysql_library_end();});return true;}; /// @todo: Migrate this default value to src/bin/dhcpX/simple_parserX.cc const int MYSQL_DEFAULT_CONNECTION_TIMEOUT = 5; // seconds |