Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/3.2' into GH-535-trace-a…
Browse files Browse the repository at this point in the history
…pi-main
  • Loading branch information
heifner committed Dec 9, 2022
2 parents e8d9e27 + 45e0596 commit 6eb815d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ class http_plugin_impl : public std::enable_shared_from_this<http_plugin_impl> {

// release http_plugin_impl_ptr shared_ptrs captured in url handlers
my->plugin_state->url_handlers.clear();

fc_ilog( logger(), "exit shutdown");
}

void http_plugin::add_handler(const string& url, const url_handler& handler, int priority) {
Expand Down
1 change: 1 addition & 0 deletions plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ void producer_plugin::plugin_shutdown() {
my->_unapplied_transactions.clear();

app().post( 0, [me = my](){} ); // keep my pointer alive until queue is drained
fc_ilog(_log, "exit shutdown");
}

void producer_plugin::handle_sighup() {
Expand Down
9 changes: 4 additions & 5 deletions plugins/trace_api_plugin/store_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,11 @@ namespace eosio::trace_api {
_maintenance_condition.wait(lock);
}

if (_maintenance_shutdown) {
break;
}

uint32_t best_known_lib = _best_known_lib;
bool shutdown = _maintenance_shutdown;
lock.unlock();

log(std::string("Waking up to handle lib: ") + std::to_string(best_known_lib));
Expand All @@ -319,10 +322,6 @@ namespace eosio::trace_api {
last_lib = best_known_lib;
} FC_LOG_AND_DROP();
}

if (shutdown) {
break;
}
}
});
}
Expand Down
1 change: 1 addition & 0 deletions plugins/trace_api_plugin/trace_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ void trace_api_plugin::plugin_startup() {
void trace_api_plugin::plugin_shutdown() {
my->plugin_shutdown();
rpc->plugin_shutdown();
fc_ilog( _log, "exit shutdown");
}

void trace_api_plugin::handle_sighup() {
Expand Down

0 comments on commit 6eb815d

Please sign in to comment.