未验证 提交 b82bc497 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #5671 from EOSIO/mongo-fix

Fix mongo_db_plugin shutdown problem
......@@ -455,7 +455,6 @@ void mongo_db_plugin_impl::consume_blocks() {
break;
}
}
mongo_pool.reset();
ilog("mongo_db_plugin consume thread shutdown gracefully");
} catch (fc::exception& e) {
elog("FC Exception while consuming block ${e}", ("e", e.to_string()));
......@@ -1270,6 +1269,8 @@ mongo_db_plugin_impl::~mongo_db_plugin_impl() {
condition.notify_one();
consume_thread.join();
mongo_pool.reset();
} catch( std::exception& e ) {
elog( "Exception on mongo_db_plugin shutdown of consume thread: ${e}", ("e", e.what()));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册