| 81 | } |
| 82 | |
| 83 | void RedisRequest::Swap(RedisRequest* other) { |
| 84 | if (other != this) { |
| 85 | _buf.swap(other->_buf); |
| 86 | std::swap(_ncommand, other->_ncommand); |
| 87 | std::swap(_has_error, other->_has_error); |
| 88 | std::swap(_cached_size_, other->_cached_size_); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | bool RedisRequest::AddCommand(const butil::StringPiece& command) { |
| 93 | if (_has_error) { |