| 70 | } |
| 71 | |
| 72 | void 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 | |
| 79 | bool RedisRequest::IsInitialized() const { |
| 80 | return _ncommand != 0; |