| 90 | } |
| 91 | |
| 92 | bool 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 | |
| 107 | bool RedisRequest::AddCommandByComponents(const butil::StringPiece* components, |
| 108 | size_t n) { |