]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github36] Couple line wraps fixed.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 24 Jan 2018 00:10:04 +0000 (01:10 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 24 Jan 2018 00:10:04 +0000 (01:10 +0100)
src/lib/dhcpsrv/benchmarks/generic_host_data_source_benchmark.cc
src/lib/dhcpsrv/benchmarks/memfile_lease_mgr_benchmark.cc

index 6d125fe871adc79d87895cfaf952ee45969d5db4..4a583309c2372e9ec1d459119ae3d10362af7ccf 100644 (file)
@@ -37,7 +37,8 @@ namespace isc {
 namespace dhcp {
 namespace bench {
 
-GenericHostDataSourceBenchmark::GenericHostDataSourceBenchmark() : hdsptr_() {
+GenericHostDataSourceBenchmark::GenericHostDataSourceBenchmark()
+    : hdsptr_() {
     LibDHCP::clearRuntimeOptionDefs();
 }
 
@@ -48,7 +49,7 @@ GenericHostDataSourceBenchmark::~GenericHostDataSourceBenchmark() {
 
 void
 GenericHostDataSourceBenchmark::ReentrantSetUp(::benchmark::State& state,
-                                              size_t const& host_count) {
+                                               size_t const& host_count) {
     state.PauseTiming();
     SetUp(state);
     prepareHosts(host_count);
@@ -56,8 +57,8 @@ GenericHostDataSourceBenchmark::ReentrantSetUp(::benchmark::State& state,
 }
 
 void
-GenericHostDataSourceBenchmark::ReentrantSetUpWithInserts(
-    ::benchmark::State& state, size_t const& host_count) {
+GenericHostDataSourceBenchmark::ReentrantSetUpWithInserts(::benchmark::State& state,
+                                                          size_t const& host_count) {
     state.PauseTiming();
     SetUp(state);
     prepareHosts(host_count);
@@ -104,8 +105,8 @@ GenericHostDataSourceBenchmark::generateIdentifier(const bool new_identifier) {
 }
 
 HostPtr
-GenericHostDataSourceBenchmark::initializeHost4(
-    const std::string& address, const Host::IdentifierType& id) {
+GenericHostDataSourceBenchmark::initializeHost4(const std::string& address,
+                                                const Host::IdentifierType& id) {
     std::vector<uint8_t> ident;
     if (id == Host::IDENT_HWADDR) {
         ident = generateHWAddr();
@@ -130,8 +131,7 @@ GenericHostDataSourceBenchmark::initializeHost4(
 HostPtr
 GenericHostDataSourceBenchmark::initializeHost6(std::string address,
                                                 Host::IdentifierType identifier,
-                                                bool prefix,
-                                                bool new_identifier) {
+                                                bool prefix, bool new_identifier) {
     std::vector<uint8_t> ident;
     switch (identifier) {
     case Host::IDENT_HWADDR:
@@ -168,21 +168,19 @@ GenericHostDataSourceBenchmark::initializeHost6(std::string address,
 }
 
 OptionDescriptor
-GenericHostDataSourceBenchmark::createEmptyOption(
-    const Option::Universe& universe,
-    const uint16_t option_type,
-    const bool persist) const {
+GenericHostDataSourceBenchmark::createEmptyOption(const Option::Universe& universe,
+                                                  const uint16_t option_type,
+                                                  const bool persist) const {
     OptionPtr option(new Option(universe, option_type));
     OptionDescriptor desc(option, persist);
     return desc;
 }
 
 OptionDescriptor
-GenericHostDataSourceBenchmark::createVendorOption(
-    const Option::Universe& universe,
-    const bool persist,
-    const bool formatted,
-    const uint32_t vendor_id) const {
+GenericHostDataSourceBenchmark::createVendorOption(const Option::Universe& universe,
+                                                   const bool persist,
+                                                   const bool formatted,
+                                                   const uint32_t vendor_id) const {
     OptionVendorPtr option(new OptionVendor(universe, vendor_id));
 
     std::ostringstream s;
@@ -197,10 +195,8 @@ GenericHostDataSourceBenchmark::createVendorOption(
 }
 
 void
-GenericHostDataSourceBenchmark::addTestOptions(
-    const HostPtr& host,
-    const bool formatted,
-    const AddedOptions& added_options) const {
+GenericHostDataSourceBenchmark::addTestOptions(const HostPtr& host, const bool formatted,
+                                               const AddedOptions& added_options) const {
     OptionDefSpaceContainer defs;
 
     if ((added_options == DHCP4_ONLY) || (added_options == DHCP4_AND_DHCP6)) {
index 44ad53c38c070b419f65fddba6c9259cfd8362f6..ac3f78e6f56a7f7e34dacdc6354ac23540d49da2 100644 (file)
@@ -79,8 +79,7 @@ public:
     /// @return Configuration string for @c LeaseMgrFactory.
     static std::string getConfigString(Universe u) {
         std::ostringstream s;
-        s << "type=memfile " << (u == V4 ? "universe=4 " : "universe=6 ")
-          << "name="
+        s << "type=memfile " << (u == V4 ? "universe=4 " : "universe=6 ") << "name="
           << getLeaseFilePath(u == V4 ? "leasefile4_0.csv" : "leasefile6_0.csv")
           << " lfc-interval=0";
         return (s.str());
@@ -108,10 +107,8 @@ public:
         // resulting file names are the ones that may exist as a
         // result of LFC.
         for (int i = static_cast<int>(Memfile_LeaseMgr::FILE_CURRENT);
-             i <= static_cast<int>(Memfile_LeaseMgr::FILE_FINISH);
-             ++i) {
-            Memfile_LeaseMgr::LFCFileType type = static_cast<
-                Memfile_LeaseMgr::LFCFileType>(i);
+             i <= static_cast<int>(Memfile_LeaseMgr::FILE_FINISH); ++i) {
+            Memfile_LeaseMgr::LFCFileType type = static_cast<Memfile_LeaseMgr::LFCFileType>(i);
             LeaseFileIO io(Memfile_LeaseMgr::appendSuffix(base_name, type));
             io.removeFile();
         }