]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Zipper - Pass invaliate down from RadosStore 47884/head
authorDaniel Gryniewicz <dang@redhat.com>
Tue, 30 Aug 2022 19:53:13 +0000 (15:53 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Wed, 31 Aug 2022 15:16:25 +0000 (11:16 -0400)
When we invalidate the state of a RadosObject, we need to also
invalidate it in the ctx for that object.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_sal_rados.h

index 91677d838d7a77fb893fb7c98a8c9b57efed49e6..c4b3ee8c7c599b61165e7c39279a33a6b5dfbc6b 100644 (file)
@@ -383,6 +383,10 @@ class RadosObject : public StoreObject {
 
     virtual ~RadosObject();
 
+    virtual void invalidate() override {
+      StoreObject::invalidate();
+      rados_ctx->invalidate(get_obj());
+    }
     virtual int delete_object(const DoutPrefixProvider* dpp,
                              optional_yield y, bool prevent_versioning) override;
     virtual int delete_obj_aio(const DoutPrefixProvider* dpp, RGWObjState* astate, Completions* aio,