Skip to content

Commit 98e1554

Browse files
committed
test/mds: Fix catch by value
Signed-off-by: Adam Emerson <[email protected]>
1 parent cdf81fa commit 98e1554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/mds/TestQuiesceDb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ TEST_F(QuiesceDbTest, QuiesceRootMerge)
17741774
managers.at(mds_gid_t(1))->reset_agent_callback([&agent_map_promise](QuiesceMap& map) -> bool {
17751775
try {
17761776
agent_map_promise.set_value(map);
1777-
} catch (std::future_error) {
1777+
} catch (const std::future_error&) {
17781778
// ignore this if we accidentally get called more than once
17791779
}
17801780
return false;

0 commit comments

Comments
 (0)