]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction: drop retired extents from write_set and invalidate
authorSamuel Just <sjust@redhat.com>
Wed, 15 Jul 2020 23:22:56 +0000 (16:22 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 16 Jul 2020 23:16:42 +0000 (16:16 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction.h

index 659d2b6b53c8edaf1c1f36cfbae55281da8f9d63..8a01c99b7dee1888b0d20c212c748c5f362a684b 100644 (file)
@@ -52,6 +52,10 @@ public:
       // which is what we want.
       retired_set.insert(ref);
     }
+    if (ref->is_pending()) {
+      write_set.erase(*ref);
+      ref->state = CachedExtent::extent_state_t::INVALID;
+    }
   }
 
   void add_to_read_set(CachedExtentRef ref) {