From 959d53d843bf5ef7838df02d02bbcd4ee1a02831 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Tue, 18 Aug 2020 21:27:19 +0900 Subject: [PATCH] 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 --- src/osd/PrimaryLogPG.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 89a5b5716db..72cf1c86109 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; -- 2.47.3