]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: pass function using rvalue reference
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 07:23:14 +0000 (15:23 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 12:57:23 +0000 (20:57 +0800)
commit158a4e0caa4b365cb9d56556287674d48b3460b0
tree1797836fb1c591e012ebba950e7300d8e2829bd9
parente24ff7b2639ca1ba48d052f22941b64f1eff6d11
osd: pass function using rvalue reference

instead of passing a copy, pass a reference. so we can save the overhead
of copying the function object.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h