From: Adam Emerson Date: Thu, 28 Nov 2024 05:17:06 +0000 (-0500) Subject: test/mds: Fix catch by value X-Git-Tag: testing/wip-hyelloji-testing-20250624.114937~2^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=98e1554563c80b7803541868e217bf76cceef533;p=ceph-ci.git test/mds: Fix catch by value Signed-off-by: Adam Emerson --- diff --git a/src/test/mds/TestQuiesceDb.cc b/src/test/mds/TestQuiesceDb.cc index b6319e69c7e..985325a4e9f 100644 --- a/src/test/mds/TestQuiesceDb.cc +++ b/src/test/mds/TestQuiesceDb.cc @@ -1774,7 +1774,7 @@ TEST_F(QuiesceDbTest, QuiesceRootMerge) managers.at(mds_gid_t(1))->reset_agent_callback([&agent_map_promise](QuiesceMap& map) -> bool { try { agent_map_promise.set_value(map); - } catch (std::future_error) { + } catch (const std::future_error&) { // ignore this if we accidentally get called more than once } return false;