]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/include/seastar/core/shared_mutex.hh
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / seastar / include / seastar / core / shared_mutex.hh
index e1747028c45c7ef532f00fc4716e70b0cf39df68..601a8a37c25b0df7723ee972a3c43f9c3299c0d0 100644 (file)
@@ -193,7 +193,7 @@ with_shared(shared_mutex& sm, Func&& func) noexcept {
             });
         });
     } catch (...) {
-        return current_exception_as_future();
+        return futurize<std::invoke_result_t<Func>>::current_exception_as_future();
     }
 }
 
@@ -247,7 +247,7 @@ with_lock(shared_mutex& sm, Func&& func) noexcept {
             });
         });
     } catch (...) {
-        return current_exception_as_future();
+        return futurize<std::invoke_result_t<Func>>::current_exception_as_future();
     }
 }