MCPcopy Create free account
hub / github.com/apache/brpc / LogErrorTextAndDelete

Class LogErrorTextAndDelete

src/brpc/protocol.h:214–221  ·  view source on GitHub ↗

Deleter for unique_ptr to print error_text of the controller when -log_error_text is on, then delete the controller if `delete_cntl' is true

Source from the content-addressed store, hash-verified

212// Deleter for unique_ptr to print error_text of the controller when
213// -log_error_text is on, then delete the controller if `delete_cntl' is true
214class LogErrorTextAndDelete {
215public:
216 explicit LogErrorTextAndDelete(bool delete_cntl = true)
217 : _delete_cntl(delete_cntl) {}
218 void operator()(Controller* c) const;
219private:
220 bool _delete_cntl;
221};
222
223// Utility to build a temporary array.
224// Example:

Callers 3

~NsheadClosureMethod · 0.85
~ThriftClosureMethod · 0.85
~SendMongoResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected