mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 06:37:26 +03:00
stop honoring the older fb303 shutdown() call
Summary: Don't honor the older (and deprecated) fb303 shutdown() call. The `initiateShutdown()` call should always be used instead now, which includes a bit more diagnostic information that we log to describe why the shutdown was requested. Reviewed By: wez, strager Differential Revision: D15572123 fbshipit-source-id: 413be611313c9ae490673a2b34742e512cf8e5ea
This commit is contained in:
parent
3528f40c14
commit
51c8da5469
@ -1318,11 +1318,6 @@ Future<Unit> EdenServiceHandler::future_invalidateKernelInodeCache(
|
||||
#endif // !_WIN32
|
||||
}
|
||||
|
||||
void EdenServiceHandler::shutdown() {
|
||||
auto helper = INSTRUMENT_THRIFT_CALL(INFO);
|
||||
server_->stop();
|
||||
}
|
||||
|
||||
void EdenServiceHandler::enableTracing() {
|
||||
XLOG(INFO) << "Enabling tracing";
|
||||
eden::enableTracing();
|
||||
|
@ -189,16 +189,7 @@ class EdenServiceHandler : virtual public StreamingEdenServiceSvIf,
|
||||
int64_t unblockFault(std::unique_ptr<UnblockFaultArg> info) override;
|
||||
|
||||
/**
|
||||
* When this Thrift handler is notified to shutdown, it notifies the
|
||||
* EdenServer to shut down, as well. We prefer that external
|
||||
* clients use initiateShutdown() instead so that we can log some
|
||||
* context.
|
||||
*/
|
||||
void shutdown() override;
|
||||
|
||||
/**
|
||||
* A thrift client has requested that we shutdown and provided
|
||||
* the reason why.
|
||||
* A thrift client has requested that we shutdown.
|
||||
*/
|
||||
void initiateShutdown(std::unique_ptr<std::string> reason) override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user