Commit 57bb532f authored by Tudor Bosman's avatar Tudor Bosman Committed by Jordan DeLong

Fix an issue in IOBufQueue::move

Summary: That's all.

Test Plan: .

Reviewed By: philipp@fb.com

FB internal diff: D520116
parent 3e0db1be
...@@ -182,7 +182,7 @@ class IOBufQueue { ...@@ -182,7 +182,7 @@ class IOBufQueue {
/** /**
* Transfer ownership of the queue's entire IOBuf chain to the caller. * Transfer ownership of the queue's entire IOBuf chain to the caller.
*/ */
std::unique_ptr<folly::IOBuf>&& move() { std::unique_ptr<folly::IOBuf> move() {
chainLength_ = 0; chainLength_ = 0;
return std::move(head_); return std::move(head_);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment