]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#94,!235] Pass pool type by reference. 94-cb-implement-mysqlconfigbackenddhcpv6-prepare 397-cb-implement-mysqlconfigbackenddhcpv6_base
authorMarcin Siodelski <marcin@isc.org>
Fri, 22 Feb 2019 14:03:32 +0000 (15:03 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 22 Feb 2019 22:59:26 +0000 (17:59 -0500)
src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
src/hooks/dhcp/mysql_cb/mysql_cb_impl.h

index b6c8ae3274937a529f92423f62c4c47b5fe91fa3..cf74f1231cf343f6d914ad728a9ca5c0bedf9dee 100644 (file)
@@ -463,7 +463,7 @@ MySqlConfigBackendImpl::getOption(const int index,
 OptionDescriptorPtr
 MySqlConfigBackendImpl::getOption(const int index,
                                   const ServerSelector& server_selector,
-                                  const Lease::Type pool_type,
+                                  const Lease::Type& pool_type,
                                   const uint64_t pool_id,
                                   const uint16_t code,
                                   const std::string& space) {
index a3ca2f75dac9a5f2900612f15731c460c481a404..96fc3d05ae8e70484d53c82cc49940d2dddf92c2 100644 (file)
@@ -437,7 +437,7 @@ public:
     /// option doesn't exist.
     OptionDescriptorPtr getOption(const int index,
                                   const db::ServerSelector& server_selector,
-                                  const dhcp::Lease::Type pool_type,
+                                  const dhcp::Lease::Type& pool_type,
                                   const uint64_t pool_id,
                                   const uint16_t code,
                                   const std::string& space);