]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 May 2018 13:30:34 +0000 (15:30 +0200)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 6e8188498e66ea46a58c6c46c44cecbb243d661d)

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;