]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction_manager: return future when enoent 47491/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 8 Aug 2022 05:30:11 +0000 (13:30 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 8 Aug 2022 05:40:56 +0000 (13:40 +0800)
Otherwise there will be a segmentation fault.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/transaction_manager.cc

index 81c79524a3b5774915f75e8aed88945fdb33a5cd..5941d9ca4c21cfd177d4bbd5aa583fb7b91f418e 100644 (file)
@@ -622,7 +622,9 @@ TransactionManager::get_extents_if_live_ret TransactionManager::get_extents_if_l
            });
          });
       }).handle_error_interruptible(crimson::ct_error::enoent::handle([] {
-       return std::list<CachedExtentRef>();
+        return get_extents_if_live_ret(
+            interruptible::ready_future_marker{},
+            std::list<CachedExtentRef>());
       }), crimson::ct_error::pass_further_all{});
     } else {
       return lba_manager->get_physical_extent_if_live(