From 8b7d0ae0353cb233843595a4bfec024ddf661a0c Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Sun, 1 Nov 2020 11:27:52 +0800 Subject: [PATCH] crimson/common: make Gated handle gate_close_exception Signed-off-by: Xuehan Xu --- src/crimson/common/gated.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crimson/common/gated.h b/src/crimson/common/gated.h index 4434b31957f..7d901b6b1a9 100644 --- a/src/crimson/common/gated.h +++ b/src/crimson/common/gated.h @@ -29,11 +29,12 @@ class Gated { if (*eptr.__cxa_exception_type() == typeid(system_shutdown_exception)) { gated_logger().debug( "{}, {} skipped, system shutdown", who, what); - return seastar::now(); + return; } gated_logger().error( "{} dispatch() {} caught exception: {}", who, what, eptr); - ceph_abort("unexpected exception from dispatch()"); + assert(*eptr.__cxa_exception_type() + == typeid(seastar::gate_closed_exception)); }); } -- 2.47.3