From: John Spray Date: Mon, 14 Mar 2016 12:45:30 +0000 (+0000) Subject: mds/FSMap: pass by ref in update_compat X-Git-Tag: v10.1.1~114^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94fd423934a7a26b0da5c289698f97ecee660beb;p=ceph.git mds/FSMap: pass by ref in update_compat Coverity: CID 1355578: Performance inefficiencies (PASS_BY_VALUE) Signed-off-by: John Spray --- diff --git a/src/mds/FSMap.h b/src/mds/FSMap.h index e14173f04baa..246e7096db6b 100644 --- a/src/mds/FSMap.h +++ b/src/mds/FSMap.h @@ -336,7 +336,7 @@ public: * for the one we had previously. Impose the new one * on all filesystems. */ - void update_compat(CompatSet c) + void update_compat(const CompatSet &c) { // We could do something more complicated here to enable // different filesystems to be served by different MDS versions,