From: Pritha Srivastava Date: Fri, 8 May 2020 18:51:46 +0000 (+0530) Subject: cls/rgw_gc: Fixing the iterator used to access urgent data map X-Git-Tag: v16.1.0~2348^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34969%2Fhead;p=ceph.git cls/rgw_gc: Fixing the iterator used to access urgent data map in xattr in cls_rgw_gc. The incorrect iterator caused a crash in osd. Signed-off-by: Pritha Srivastava --- diff --git a/src/cls/rgw_gc/cls_rgw_gc.cc b/src/cls/rgw_gc/cls_rgw_gc.cc index 7970e9e07a2f..58369a2970ab 100644 --- a/src/cls/rgw_gc/cls_rgw_gc.cc +++ b/src/cls/rgw_gc/cls_rgw_gc.cc @@ -432,7 +432,7 @@ static int cls_rgw_gc_queue_update_entry(cls_method_context_t hctx, bufferlist * } //end - catch auto xattr_iter = xattr_urgent_data_map.find(op.info.tag); if (xattr_iter != xattr_urgent_data_map.end()) { - it->second = op.info.time; + xattr_iter->second = op.info.time; tag_found = true; //write the updated map back bufferlist bl_map;