From: Edwin Rodriguez Date: Wed, 8 Oct 2025 16:22:54 +0000 (-0400) Subject: mds: Remove unnecessary std::move on trivially-copyable type LockOp in add_lock method X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c275cab46e4da94d2ccd33545f812f012f589f94;p=ceph.git mds: Remove unnecessary std::move on trivially-copyable type LockOp in add_lock method Fixes: https://tracker.ceph.com/issues/73431 Signed-off-by: Edwin Rodriguez --- diff --git a/src/mds/Mutation.h b/src/mds/Mutation.h index 9f2a8fd82ba..de915a55f6e 100644 --- a/src/mds/Mutation.h +++ b/src/mds/Mutation.h @@ -125,9 +125,9 @@ public: protected: void add_lock(LockOp op, int idx) { if (idx >= 0) { - emplace(cbegin() + idx, std::move(op)); + emplace(cbegin() + idx, op); } else { - emplace_back(std::move(op)); + emplace_back(op); } } };