BIND 10 trac1062, updated. 4cd96de7e7d4ac12c38b45efe7b3ee0ed331d3b9 [1062] Long-line wrapping
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Aug 12 07:03:58 UTC 2011
The branch, trac1062 has been updated
via 4cd96de7e7d4ac12c38b45efe7b3ee0ed331d3b9 (commit)
from 914fe9bc05003defeff70acb84a52e86fb9ced4c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4cd96de7e7d4ac12c38b45efe7b3ee0ed331d3b9
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Aug 12 09:03:23 2011 +0200
[1062] Long-line wrapping
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/database.cc | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index 2494cad..d0a97cf 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -189,8 +189,10 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
}
try {
- const isc::dns::RRType cur_type(columns[DatabaseConnection::TYPE_COLUMN]);
- const isc::dns::RRTTL cur_ttl(columns[DatabaseConnection::TTL_COLUMN]);
+ const isc::dns::RRType cur_type(columns[DatabaseConnection::
+ TYPE_COLUMN]);
+ const isc::dns::RRTTL cur_ttl(columns[DatabaseConnection::
+ TTL_COLUMN]);
// Ths sigtype column was an optimization for finding the
// relevant RRSIG RRs for a lookup. Currently this column is
// not used in this revised datasource implementation. We
@@ -210,7 +212,8 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
"the only record for " + name.toText());
}
addOrCreate(result_rrset, name, getClass(), cur_type,
- cur_ttl, columns[DatabaseConnection::RDATA_COLUMN],
+ cur_ttl, columns[DatabaseConnection::
+ RDATA_COLUMN],
*connection_);
} else if (cur_type == isc::dns::RRType::CNAME()) {
// There should be no other data, so result_rrset should
@@ -219,8 +222,9 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
isc_throw(DataSourceError, "CNAME found but it is not "
"the only record for " + name.toText());
}
- addOrCreate(result_rrset, name, getClass(), cur_type, cur_ttl,
- columns[DatabaseConnection::RDATA_COLUMN],
+ addOrCreate(result_rrset, name, getClass(), cur_type,
+ cur_ttl, columns[DatabaseConnection::
+ RDATA_COLUMN],
*connection_);
result_status = CNAME;
} else if (cur_type == isc::dns::RRType::RRSIG()) {
@@ -233,17 +237,21 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
// types we are certain we don't need
sig_store.addSig(isc::dns::rdata::createRdata(cur_type,
getClass(),
- columns[DatabaseConnection::RDATA_COLUMN]));
+ columns[DatabaseConnection::
+ RDATA_COLUMN]));
}
} catch (const isc::dns::InvalidRRType& irt) {
isc_throw(DataSourceError, "Invalid RRType in database for " <<
- name << ": " << columns[DatabaseConnection::TYPE_COLUMN]);
+ name << ": " << columns[DatabaseConnection::
+ TYPE_COLUMN]);
} catch (const isc::dns::InvalidRRTTL& irttl) {
isc_throw(DataSourceError, "Invalid TTL in database for " <<
- name << ": " << columns[DatabaseConnection::TTL_COLUMN]);
+ name << ": " << columns[DatabaseConnection::
+ TTL_COLUMN]);
} catch (const isc::dns::rdata::InvalidRdataText& ird) {
isc_throw(DataSourceError, "Invalid rdata in database for " <<
- name << ": " << columns[DatabaseConnection::RDATA_COLUMN]);
+ name << ": " << columns[DatabaseConnection::
+ RDATA_COLUMN]);
}
}
} catch (const DataSourceError& dse) {
More information about the bind10-changes
mailing list