From: Thomas Markwalder Date: Fri, 1 Jun 2018 11:58:16 +0000 (-0400) Subject: [5629] Addressed review comments X-Git-Tag: trac5631_base~7^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3033f888090e9ae55ac9947b2e9ea5f492ba0156;p=thirdparty%2Fkea.git [5629] Addressed review comments Added missing schema minor number to CQL log messages. --- diff --git a/src/lib/dhcpsrv/cql_host_data_source.cc b/src/lib/dhcpsrv/cql_host_data_source.cc index 2ba860bd3b..6dea3911ae 100644 --- a/src/lib/dhcpsrv/cql_host_data_source.cc +++ b/src/lib/dhcpsrv/cql_host_data_source.cc @@ -1622,7 +1622,8 @@ CqlHostDataSourceImpl::CqlHostDataSourceImpl(const CqlConnection::ParameterMap& if (code_version != db_version) { isc_throw(DbOpenError, "Cassandra schema version mismatch: need version: " << code_version.first << "." << code_version.second - << " found version: " << db_version.first << "."); + << " found version: " << db_version.first << "." + << db_version.second); } // Prepare all possible statements. diff --git a/src/lib/dhcpsrv/cql_lease_mgr.cc b/src/lib/dhcpsrv/cql_lease_mgr.cc index b0ddeca159..ded93f08d8 100644 --- a/src/lib/dhcpsrv/cql_lease_mgr.cc +++ b/src/lib/dhcpsrv/cql_lease_mgr.cc @@ -1863,10 +1863,10 @@ CqlLeaseMgr::CqlLeaseMgr(const DatabaseConnection::ParameterMap ¶meters) CQL_SCHEMA_VERSION_MINOR); std::pair db_version = getVersion(); if (code_version != db_version) { - isc_throw(DbOpenError, - "Cassandra schema version mismatch: need version: " - << code_version.first << "." << code_version.second - << " found version: " << db_version.first << "."); + isc_throw(DbOpenError, "Cassandra schema version mismatch: need version: " + << code_version.first << "." << code_version.second + << " found version: " << db_version.first << "." + << db_version.second); } // Now prepare the rest of the exchanges.