]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/src/core/exception_hacks.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / seastar / src / core / exception_hacks.cc
index a44c4a50d49c4613d3c62a8d421d9b8122f71861..d285b5d0bd9f22a2402af40189e99d7de760afa0 100644 (file)
@@ -94,6 +94,7 @@ void init_phdr_cache() {
 seastar::logger exception_logger("exception");
 
 void log_exception_trace() noexcept {
+    seastar::engine()._cxx_exceptions++;
     static thread_local bool nested = false;
     if (!nested && exception_logger.is_enabled(log_level::trace)) {
         nested = true;
@@ -143,7 +144,6 @@ int _Unwind_RaiseException(struct _Unwind_Exception *h) {
     }
     if (seastar::local_engine) {
         seastar::log_exception_trace();
-        seastar::engine()._cxx_exceptions++;
     }
     return org(h);
 }