MCPcopy Create free account
hub / github.com/apache/impala / WriteHandler

Method WriteHandler

be/src/kudu/rpc/connection.cc:750–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750void Connection::WriteHandler(ev::io &watcher, int revents) {
751 DCHECK(reactor_thread_->IsCurrentThread());
752
753 if (revents & EV_ERROR) {
754 reactor_thread_->DestroyConnection(this, Status::NetworkError(ToString() +
755 ": writeHandler encountered an error"));
756 return;
757 }
758 DVLOG(3) << ToString() << ": writeHandler: revents = " << revents;
759
760 if (outbound_transfers_.empty()) {
761 LOG(WARNING) << ToString() << " got a ready-to-write callback, but there is "
762 "nothing to write.";
763 write_io_.stop();
764 return;
765 }
766 if (ProcessOutboundTransfers() == kNoMoreToSend) {
767 write_io_.stop();
768 }
769}
770
771Connection::ProcessOutboundTransfersResult Connection::ProcessOutboundTransfers() {
772 while (!outbound_transfers_.empty()) {

Callers

nothing calls this directly

Calls 6

NetworkErrorFunction · 0.85
DestroyConnectionMethod · 0.80
stopMethod · 0.65
ToStringFunction · 0.50
IsCurrentThreadMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected