From: myoungwon oh Date: Tue, 18 Aug 2020 12:27:19 +0000 (+0900) Subject: osd: do not make the chunk state missing upon set_chunk X-Git-Tag: v16.1.0~1248^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=959d53d843bf5ef7838df02d02bbcd4ee1a02831;p=ceph.git osd: do not make the chunk state missing upon set_chunk Since the missing state causes a promote on clone after set_chunk is set, we remove the missing state. Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 89a5b5716db9..72cf1c861097 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7055,7 +7055,6 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) } chunk_info_t chunk_info; - chunk_info.set_flag(chunk_info_t::FLAG_MISSING); chunk_info.oid = target; chunk_info.offset = tgt_offset; chunk_info.length = src_length;