]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
monc: Remove pessimizing move
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 10 Apr 2017 15:48:57 +0000 (11:48 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 11 Apr 2017 01:57:14 +0000 (21:57 -0400)
commit05fed82cf4463ffe396d7d68d9458ea649c93939
tree479bfc28ae5443aea923485ff11e4007a2cf021a
parent5da652e1d9a2ad2219f94256f2728840aa30f8ed
monc: Remove pessimizing move

Calling std::move on on a function returning a value can interfere
with RVO. At best it has no effect, but can actively interfere with
Copy/Move Elision and make code less efficient.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mon/MonClient.cc