From b249557f1d86a522df496a91e2143d5569dec32b Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 7 May 2018 16:13:18 -0400 Subject: [PATCH] auto: Catch exceptions by const reference Signed-off-by: Adam C. Emerson (cherry picked from commit 6e8188498e66ea46a58c6c46c44cecbb243d661d) --- src/mon/AuthMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index aff80e9440e4..dfb166cfb2cd 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -1582,7 +1582,7 @@ bool AuthMonitor::_upgrade_format_to_dumpling() bufferlist::iterator it = p->second.caps["mon"].begin(); decode(mon_caps, it); } - catch (buffer::error) { + catch (const buffer::error&) { dout(10) << __func__ << " unable to parse mon cap for " << p->first << dendl; continue; -- 2.47.3