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: v17.0.0~2380^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d5b895498ef921ed840f05de95eabe6b2f806e4b;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 7970e9e07a2f9..58369a2970ab5 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;