]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: pass a reference of function to sanitize() not a copy 18618/head
authorKefu Chai <kchai@redhat.com>
Mon, 30 Oct 2017 06:48:43 +0000 (14:48 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 30 Oct 2017 06:51:59 +0000 (14:51 +0800)
commitb3d49f88eab625e1f6145e500003108e1abbe8d1
tree1b3db9ce4d28b75ca43866374bbe08f1fe734930
parent059d04674547a36975d8c7a39fd6561843b162d6
mds: pass a reference of function to sanitize() not a copy

to save the overhead of creating and destoying a copy of the function
closure.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mds/FSMap.cc
src/mds/FSMap.h
src/mds/MDSMap.cc
src/mds/MDSMap.h