]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/mds: Fix catch by value
authorAdam Emerson <aemerson@redhat.com>
Thu, 28 Nov 2024 05:17:06 +0000 (00:17 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 3 Apr 2025 22:38:39 +0000 (18:38 -0400)
Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/test/mds/TestQuiesceDb.cc

index b6319e69c7ef93d748a28a223cfa5621df94ce8f..985325a4e9fa8a43c68dcb22c42edc016ecc965c 100644 (file)
@@ -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;