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

Method AddCommand

src/brpc/redis.cpp:92–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool RedisRequest::AddCommand(const butil::StringPiece& command) {
93 if (_has_error) {
94 return false;
95 }
96 const butil::Status st = RedisCommandNoFormat(&_buf, command);
97 if (st.ok()) {
98 ++_ncommand;
99 return true;
100 } else {
101 CHECK(st.ok()) << st;
102 _has_error = true;
103 return false;
104 }
105}
106
107bool RedisRequest::AddCommandByComponents(const butil::StringPiece* components,
108 size_t n) {

Callers 10

access_redisFunction · 0.45
senderFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
TEST_FFunction · 0.45
incr_threadFunction · 0.45
TEST_FFunction · 0.45
SendToEndpointMethod · 0.45

Calls 2

RedisCommandNoFormatFunction · 0.85
okMethod · 0.80

Tested by 3

TEST_FFunction · 0.36
incr_threadFunction · 0.36
TEST_FFunction · 0.36