Skip to content

Commit

Permalink
Merge branch 'release/3.1' antelopeIO/leap into GH-547-ehp-producer-a…
Browse files Browse the repository at this point in the history
…pi-doc-cleanup-3.1
  • Loading branch information
ericpassmore committed Dec 12, 2022
2 parents 413d333 + 8282964 commit d909778
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ class http_plugin_impl : public std::enable_shared_from_this<http_plugin_impl> {
my->url_handlers.clear();

app().post( 0, [me = my](){} ); // keep my pointer alive until queue is drained
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 @@ -1242,6 +1242,7 @@ void producer_plugin::plugin_shutdown() {
}

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 @@ -455,6 +455,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 d909778

Please sign in to comment.