mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
msg: Remove pessimizing move
Do not std::move the result of a function returning a value. (Once could reasonably std::move the result of a function returning an lvalue reference, but *not* that of one returning a value.) Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
parent
7d344d137a
commit
568d60631c
@ -526,7 +526,7 @@ RDMAStack::~RDMAStack()
|
||||
void RDMAStack::spawn_worker(unsigned i, std::function<void ()> &&func)
|
||||
{
|
||||
threads.resize(i+1);
|
||||
threads[i] = std::move(std::thread(func));
|
||||
threads[i] = std::thread(func);
|
||||
}
|
||||
|
||||
void RDMAStack::join_worker(unsigned i)
|
||||
|
Loading…
Reference in New Issue
Block a user