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

Method SendNegotiatePB

be/src/kudu/rpc/server_negotiation.cc:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368Status ServerNegotiation::SendNegotiatePB(const NegotiatePB& msg) {
369 ResponseHeader header;
370 header.set_call_id(kNegotiateCallId);
371
372 DCHECK(socket_);
373 DCHECK(msg.IsInitialized()) << "message must be initialized";
374 DCHECK(msg.has_step()) << "message must have a step";
375
376 TRACE("Sending $0 NegotiatePB response", NegotiatePB::NegotiateStep_Name(msg.step()));
377 return SendFramedMessageBlocking(socket_.get(), header, msg, deadline_);
378}
379
380Status ServerNegotiation::SendError(ErrorStatusPB::RpcErrorCodePB code, const Status& err) {
381 DCHECK(!err.ok());

Callers

nothing calls this directly

Calls 4

set_call_idMethod · 0.80
getMethod · 0.65
IsInitializedMethod · 0.45

Tested by

no test coverage detected