]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: make Gated handle gate_close_exception
authorXuehan Xu <xxhdx1985126@gmail.com>
Sun, 1 Nov 2020 03:27:52 +0000 (11:27 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Sun, 1 Nov 2020 03:37:21 +0000 (11:37 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/common/gated.h

index 4434b31957f77f55c8d59444d66e7baae3060644..7d901b6b1a912687bb51a6804866dab69cbb990e 100644 (file)
@@ -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));
     });
   }