]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/interruptible_future: always throw the original
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 11 Mar 2026 06:35:05 +0000 (14:35 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 11 Mar 2026 08:05:51 +0000 (16:05 +0800)
exceptions

Otherwise, errorator errors or interrputions might be lost

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/common/interruptible_future.h

index f23361b21faac69db129c4b44419f622f893b756..bd8fec5a07e104c6084c8e03d6912a0348daca71 100644 (file)
@@ -322,7 +322,7 @@ Result non_futurized_call_with_interruption(
     // Clear the global "interrupt_cond" to prevent it from interfering other
     // continuation chains.
     interrupt_cond<InterruptCond>.reset();
-    std::throw_with_nested(std::runtime_error("failed to run interruptible continuation"));
+    throw;
   }
 }
 
@@ -452,9 +452,7 @@ public:
          e,
          (void*)interrupt_cond<InterruptCond>.interrupt_cond.get(),
          typeid(InterruptCond).name());
-       std::throw_with_nested(
-         std::runtime_error(
-           "failed to run interruptible continuation"));
+        throw;
       }
     }
   }
@@ -1547,9 +1545,7 @@ public:
          e,
          (void*)interrupt_cond<InterruptCond>.interrupt_cond.get(),
          typeid(InterruptCond).name());
-       std::throw_with_nested(
-         std::runtime_error(
-           "failed to run interruptible continuation"));
+        throw;
       }
     }
   }
@@ -1577,9 +1573,7 @@ public:
        e,
        (void*)interrupt_cond<InterruptCond>.interrupt_cond.get(),
        typeid(InterruptCond).name());
-      std::throw_with_nested(
-       std::runtime_error(
-         "failed to run interruptible continuation"));
+      throw;
     }
   }
 
@@ -1607,9 +1601,7 @@ public:
          e,
          (void*)interrupt_cond<InterruptCond>.interrupt_cond.get(),
          typeid(InterruptCond).name());
-       std::throw_with_nested(
-         std::runtime_error(
-           "failed to run interruptible continuation"));
+        throw;
       }
     }
   }