]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs: Do not catch polymorphic exception by value
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 29 Aug 2018 19:37:17 +0000 (15:37 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 12 Sep 2018 15:37:28 +0000 (11:37 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/tools/cephfs/JournalFilter.cc

index 3b30ffa092f284e9e47c5da5b99c50b1481d2bea..266d7fccb578d8c807dab51fd7ad14e329cf069f 100644 (file)
@@ -226,7 +226,7 @@ int JournalFilter::parse_args(
        } else if (!type.compare("purge_queue")) {
          purge_action = PurgeItem::str_to_type(arg_str);
        }
-      } catch (std::out_of_range) {
+      } catch (const std::out_of_range&) {
         derr << "Invalid event type '" << arg_str << "'" << dendl;
         return -EINVAL;
       }