]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: retain read set
authorSamuel Just <sjust@redhat.com>
Fri, 10 Jul 2020 21:22:51 +0000 (14:22 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 16 Jul 2020 23:16:42 +0000 (16:16 -0700)
We're going to be using the read set refs to ensure cache residence
until commit.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cache.cc

index f03ead74ab0abde9f1bfaeb4cf16e9b39172ece3..649eb9c8d088ce338c2996635dbac4a778a74e47 100644 (file)
@@ -161,7 +161,6 @@ std::optional<record_t> Cache::try_construct_record(Transaction &t)
     record.extents.push_back(extent_t{std::move(bl)});
   }
 
-  t.read_set.clear();
   return std::make_optional<record_t>(std::move(record));
 }