]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not make the chunk state missing upon set_chunk
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 18 Aug 2020 12:27:19 +0000 (21:27 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 18 Aug 2020 13:06:36 +0000 (22:06 +0900)
Since the missing state causes a promote on clone
after set_chunk is set, we remove the missing state.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
src/osd/PrimaryLogPG.cc

index 89a5b5716db962c3cd35e040964dad5f68498315..72cf1c861097284067dc775a7b15d9f88ab5df4b 100644 (file)
@@ -7055,7 +7055,6 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& 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;