]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auto: Catch exceptions by const reference
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 7 May 2018 20:13:18 +0000 (16:13 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mon/AuthMonitor.cc

index aff80e9440e4216833b0af0f1c0235d7c069d998..dfb166cfb2cdc9956eba2fcb801731ae410e5823 100644 (file)
@@ -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;