]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: fix experimental_list_directory iterator dereference 67604/head
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 26 Feb 2026 11:07:22 +0000 (11:07 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Mon, 2 Mar 2026 11:24:47 +0000 (11:24 +0000)
See: https://github.com/scylladb/seastar/commit/0046c83f652945f0060bf0db9383481623889cf8

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/crimson/os/seastore/seastore.cc

index 6a03ab801bd2da9efc6f622d6283c9bebcc5cf27..d3f1cff999bf52787f62f0cb63f724fafebaea0e 100644 (file)
@@ -445,7 +445,7 @@ Device::access_ertr::future<> SeaStore::_mkfs(uuid_d new_osd_fsid)
     // hmm?
     auto lister = rdir.experimental_list_directory();
     while (auto de = co_await lister()) {
-      auto& entry = de->get();
+      auto& entry = *de;
       DEBUG("found file: {}", entry.name);
       if (entry.name.find("block.") == 0 && entry.name.length() > 6 ) {
       // 6 for "block."