]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/FSMap: pass by ref in update_compat
authorJohn Spray <john.spray@redhat.com>
Mon, 14 Mar 2016 12:45:30 +0000 (12:45 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 22 Mar 2016 12:08:48 +0000 (12:08 +0000)
Coverity: CID 1355578:  Performance inefficiencies  (PASS_BY_VALUE)

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/FSMap.h

index e14173f04baa0f4976893386536e079022c60b14..246e7096db6b67e73959bd0247de039864a805ee 100644 (file)
@@ -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,