From: Adam C. Emerson Date: Mon, 7 May 2018 20:13:18 +0000 (-0400) Subject: auto: Catch exceptions by const reference X-Git-Tag: v13.2.0~37^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b249557f1d86a522df496a91e2143d5569dec32b;p=ceph.git auto: Catch exceptions by const reference Signed-off-by: Adam C. Emerson (cherry picked from commit 6e8188498e66ea46a58c6c46c44cecbb243d661d) --- 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;