]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: pass by ref to clone_range
authorSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:25:39 +0000 (14:25 -0500)
committerSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:29:13 +0000 (14:29 -0500)
CID 1395650 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
pass_by_value: Passing parameter noid of type ghobject_t (size 144 bytes) by value.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h

index 586ccb7115cbe7cb19be52f59d59467cf9cc502c..35e1026685c9cc5f6b741e9638f25b3fc4169eeb 100644 (file)
@@ -1176,7 +1176,8 @@ public:
      * The source range *must* overlap with the source object data. If it does
      * not the result is undefined.
      */
-    void clone_range(const coll_t& cid, const ghobject_t& oid, ghobject_t noid,
+    void clone_range(const coll_t& cid, const ghobject_t& oid,
+                    const ghobject_t& noid,
                     uint64_t srcoff, uint64_t srclen, uint64_t dstoff) {
       Op* _op = _get_next_op();
       _op->op = OP_CLONERANGE2;