]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw_gc: Fixing the iterator used to access urgent data map 34969/head
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 8 May 2020 18:51:46 +0000 (00:21 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Fri, 8 May 2020 18:51:46 +0000 (00:21 +0530)
in xattr in cls_rgw_gc. The incorrect iterator caused a crash
in osd.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/cls/rgw_gc/cls_rgw_gc.cc

index 7970e9e07a2f9ec60137672248c5e9cf03d14901..58369a2970ab57363d55545bd68cf0929d40378b 100644 (file)
@@ -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;