From: Xuehan Xu Date: Sun, 1 Nov 2020 03:27:52 +0000 (+0800) Subject: crimson/common: make Gated handle gate_close_exception X-Git-Tag: v16.1.0~715^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b7d0ae0353cb233843595a4bfec024ddf661a0c;p=ceph.git crimson/common: make Gated handle gate_close_exception Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/common/gated.h b/src/crimson/common/gated.h index 4434b31957f7..7d901b6b1a91 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)); }); }