]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/osd_meta: Abort instead of throwing runtime_error
authorMatan Breizman <mbreizma@redhat.com>
Wed, 10 May 2023 13:53:18 +0000 (13:53 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 20 Jun 2023 17:19:54 +0000 (17:19 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/osd_meta.cc

index aa30b8190fde8f5f3afc34214b4c68b685e00d74..e40b2b2464be8b54d6e93c16beb3efdb80743668 100644 (file)
@@ -30,8 +30,8 @@ seastar::future<bufferlist> OSDMeta::load_map(epoch_t e)
                     osdmap_oid(e), 0, 0,
                     CEPH_OSD_OP_FLAG_FADVISE_WILLNEED).handle_error(
     read_errorator::all_same_way([e] {
-      throw std::runtime_error(fmt::format("read gave enoent on {}",
-                                           osdmap_oid(e)));
+      ceph_abort_msg(fmt::format("{} read gave enoent on {}",
+                                 __func__, osdmap_oid(e)));
     }));
 }