]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
clang: define default value for LoglevelV only once (3 templates) 20727/head
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 5 Mar 2018 22:00:44 +0000 (17:00 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Mon, 5 Mar 2018 22:16:11 +0000 (17:16 -0500)
I believe, after some searching, that this is a straightforward
application of rule 14.1.12, C++14.

Fixes compilation w/clang-5.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/os/bluestore/BlueStore.cc

index 71ad7267e644e4084d78d76011df2944e38371dc..76f07169ec14453e35bdcc6fe5183285fea13e65 100644 (file)
@@ -9898,7 +9898,7 @@ int BlueStore::_touch(TransContext *txc,
   return r;
 }
 
-template <int LogLevelV = 30>
+template <int LogLevelV>
 void BlueStore::_dump_onode(const OnodeRef& o)
 {
   if (!cct->_conf->subsys.should_gather<ceph_subsys_bluestore, LogLevelV>())
@@ -9922,7 +9922,7 @@ void BlueStore::_dump_onode(const OnodeRef& o)
   _dump_extent_map<LogLevelV>(o->extent_map);
 }
 
-template <int LogLevelV = 30>
+template <int LogLevelV>
 void BlueStore::_dump_extent_map(ExtentMap &em)
 {
   uint64_t pos = 0;
@@ -9954,7 +9954,7 @@ void BlueStore::_dump_extent_map(ExtentMap &em)
   }
 }
 
-template <int LogLevelV = 30>
+template <int LogLevelV>
 void BlueStore::_dump_transaction(Transaction *t)
 {
   dout(LogLevelV) << __func__ << " transaction dump:\n";