]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ECBackend: cleanup for unnecessary copy with pg_stat_t
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Mon, 19 Dec 2016 09:12:38 +0000 (17:12 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Mon, 19 Dec 2016 09:12:38 +0000 (17:12 +0800)
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/osd/ECBackend.cc

index c579a47f08629778bd296ee955d0970baa02ee39..5b9a24d1d01ed3bd415a51ba8d9aa639949704cc 100644 (file)
@@ -1895,7 +1895,7 @@ bool ECBackend::try_reads_to_commit()
       trans.find(i->shard);
     assert(iter != trans.end());
     bool should_send = get_parent()->should_send_op(*i, op->hoid);
-    pg_stat_t stats =
+    const pg_stat_t &stats =
       should_send ?
       get_info().stats :
       parent->get_shard_info().find(*i)->second.stats;