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

Method Swap

src/brpc/redis.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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
92bool RedisRequest::AddCommand(const butil::StringPiece& command) {
93 if (_has_error) {

Callers

nothing calls this directly

Calls 2

swapFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected