]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction: make sure the transaction's write_set is a subset...
authorXuehan Xu <xxhdx1985126@gmail.com>
Fri, 17 Dec 2021 05:53:16 +0000 (13:53 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Fri, 17 Dec 2021 05:53:16 +0000 (13:53 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/transaction.h

index 0d9cb02c0bd617a1bec15849c9c2eea090e1049a..a3789cb9374ec03bc284d683ebe3295263a184b3 100644 (file)
@@ -132,6 +132,7 @@ public:
   void add_mutated_extent(CachedExtentRef ref) {
     LOG_PREFIX(Transaction::add_mutated_extent);
     ceph_assert(!is_weak());
+    assert(read_set.count(ref->prior_instance->get_paddr()));
     mutated_block_list.push_back(ref);
     TRACET("adding {} to write_set", *this, *ref);
     write_set.insert(*ref);