summaryrefslogtreecommitdiffstats
path: root/src/crimson/common/gated.h
diff options
context:
space:
mode:
authorXuehan Xu <xxhdx1985126@gmail.com>2020-11-01 04:27:52 +0100
committerXuehan Xu <xxhdx1985126@gmail.com>2020-11-01 04:37:21 +0100
commit8b7d0ae0353cb233843595a4bfec024ddf661a0c (patch)
tree365abab5a60b39d508142ca753c837ef87f91fa6 /src/crimson/common/gated.h
parentcrimson/osd: clean up pending_txn when actingset is changed (diff)
downloadceph-8b7d0ae0353cb233843595a4bfec024ddf661a0c.tar.xz
ceph-8b7d0ae0353cb233843595a4bfec024ddf661a0c.zip
crimson/common: make Gated handle gate_close_exception
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
Diffstat (limited to '')
-rw-r--r--src/crimson/common/gated.h5
1 files 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));
});
}