From: myoungwon oh Date: Mon, 7 Dec 2020 13:46:49 +0000 (+0900) Subject: osd: fix to update missing state correctly X-Git-Tag: v16.1.0~158^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2372c69381470eee3ec12348dc75ecb4742c8d7;p=ceph.git osd: fix to update missing state correctly Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 471273822800..ff68a8ce9dc5 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7068,7 +7068,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) } if (chunk_length == obs.oi.size) { // truncate - for (auto p : obs.oi.manifest.chunk_map) { + for (auto &p : obs.oi.manifest.chunk_map) { p.second.set_flag(chunk_info_t::FLAG_MISSING); } t->truncate(obs.oi.soid, 0);