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

Function VerifyMaxMessageSizeInheritance

be/src/rpc/thrift-util.cc:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void VerifyMaxMessageSizeInheritance(TTransport* source, TTransport* dest) {
349 // Verify that the source has the max message size set to either the internal
350 // limit or the external limit
351 int64_t source_max_message_size = source->getConfiguration()->getMaxMessageSize();
352 DCHECK(source_max_message_size == ThriftInternalRpcMaxMessageSize() ||
353 source_max_message_size == ThriftExternalRpcMaxMessageSize());
354 // Verify that the destination transport has the same limit as the source
355 DCHECK_EQ(source_max_message_size, dest->getConfiguration()->getMaxMessageSize());
356}
357}

Callers 3

getTransportMethod · 0.85
WrapClientTransportMethod · 0.85
getTransportMethod · 0.85

Calls 4

getMaxMessageSizeMethod · 0.45
getConfigurationMethod · 0.45

Tested by

no test coverage detected