]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: bucket sync: invalidate hints data if raced with another writer
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 19:36:41 +0000 (11:36 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 19:36:41 +0000 (11:36 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/services/svc_bucket_sync_sobj.cc

index c9629a2a313259e19c07407084ae35b508a92d92..ec3152b43c03e5a510ff0edd0910b818329e24ae 100644 (file)
@@ -543,6 +543,8 @@ int RGWSI_BS_SObj_HintIndexObj::update(const rgw_bucket& entity,
       ldout(cct, 0) << "ERROR: failed to flush hint index: obj=" << obj << " r=" << r << dendl;
       return r;
     }
+
+    invalidate();
   }
   ldout(cct, 0) << "ERROR: failed to flush hint index: too many retries (obj=" << obj << "), likely a bug" << dendl;