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

Method AddCommandByComponents

src/brpc/redis.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool RedisRequest::AddCommandByComponents(const butil::StringPiece* components,
108 size_t n) {
109 if (_has_error) {
110 return false;
111 }
112 const butil::Status st = RedisCommandByComponents(&_buf, components, n);
113 if (st.ok()) {
114 ++_ncommand;
115 return true;
116 } else {
117 CHECK(st.ok()) << st;
118 _has_error = true;
119 return false;
120 }
121}
122
123bool RedisRequest::AddCommandWithArgs(const char* fmt, ...) {
124 if (_has_error) {

Callers 4

TEST_FFunction · 0.80
TEST_FFunction · 0.80
SendToEndpointMethod · 0.80
BuildRedisRequestMethod · 0.80

Calls 2

RedisCommandByComponentsFunction · 0.85
okMethod · 0.80

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64