From: Jianpeng Ma Date: Sun, 22 Mar 2015 13:15:04 +0000 (+0800) Subject: osd/ReplicatedPG: cleanup code in ReplicatedPG::process_copy_chunk. X-Git-Tag: v9.0.2~93^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ee8c50b66b38cd8c639c90fc2ec83b938c0fdcfc;p=ceph.git osd/ReplicatedPG: cleanup code in ReplicatedPG::process_copy_chunk. Only data or omap has digest, it print the debug message. Signed-off-by: Jianpeng Ma --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index a01c57c6b895..5e9c144969ce 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6486,14 +6486,16 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, ceph_tid_t tid, int r) _build_finish_copy_transaction(cop, cop->results.final_tx); // verify digests? - dout(20) << __func__ << std::hex - << " got digest: rx data 0x" << cop->results.data_digest - << " omap 0x" << cop->results.omap_digest - << ", source: data 0x" << cop->results.source_data_digest - << " omap 0x" << cop->results.source_omap_digest - << std::dec - << " flags " << cop->results.flags - << dendl; + if (cop->results.is_data_digest() || cop->results.is_omap_digest()) { + dout(20) << __func__ << std::hex + << " got digest: rx data 0x" << cop->results.data_digest + << " omap 0x" << cop->results.omap_digest + << ", source: data 0x" << cop->results.source_data_digest + << " omap 0x" << cop->results.source_omap_digest + << std::dec + << " flags " << cop->results.flags + << dendl; + } if (cop->results.is_data_digest() && cop->results.data_digest != cop->results.source_data_digest) { derr << __func__ << std::hex << " data digest 0x" << cop->results.data_digest