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

Method MergeFrom

src/brpc/redis.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void RedisRequest::MergeFrom(const RedisRequest& from) {
73 CHECK_NE(&from, this);
74 _has_error = _has_error || from._has_error;
75 _buf.append(from._buf);
76 _ncommand += from._ncommand;
77}
78
79bool RedisRequest::IsInitialized() const {
80 return _ncommand != 0;

Callers 7

TEST_FFunction · 0.45
CloneFunction · 0.45
CreateMethod · 0.45
SetConnectedMethod · 0.45
StreamAcceptFunction · 0.45
OnCompleteMethod · 0.45
SetRemoteSettingsFunction · 0.45

Calls 4

CopyFromSameArenaMethod · 0.80
appendMethod · 0.45
allocateMethod · 0.45

Tested by 1

TEST_FFunction · 0.36