Browse Source

[2164] Add getRRsigDataCount() implementation to RBNodeRRset too

Mukund Sivaraman 12 years ago
parent
commit
d8e429d659
2 changed files with 7 additions and 0 deletions
  1. 5 0
      src/lib/datasrc/memory_datasrc.cc
  2. 2 0
      src/lib/datasrc/rbnode_rrset.h

+ 5 - 0
src/lib/datasrc/memory_datasrc.cc

@@ -623,6 +623,11 @@ RBNodeRRset::getRRsig() const {
     return (impl_->rrset_->getRRsig());
     return (impl_->rrset_->getRRsig());
 }
 }
 
 
+unsigned int
+RBNodeRRset::getRRsigDataCount() const {
+    return (impl_->rrset_->getRRsigDataCount());
+}
+
 void
 void
 RBNodeRRset::addRRsig(const ConstRdataPtr& rdata) {
 RBNodeRRset::addRRsig(const ConstRdataPtr& rdata) {
     AbstractRRset* p = const_cast<AbstractRRset*>(impl_->rrset_.get());
     AbstractRRset* p = const_cast<AbstractRRset*>(impl_->rrset_.get());

+ 2 - 0
src/lib/datasrc/rbnode_rrset.h

@@ -154,6 +154,8 @@ public:
 
 
     virtual isc::dns::RRsetPtr getRRsig() const;
     virtual isc::dns::RRsetPtr getRRsig() const;
 
 
+    virtual unsigned int getRRsigDataCount() const;
+
     // With all the RRsig methods, we have the problem that we store the
     // With all the RRsig methods, we have the problem that we store the
     // underlying RRset using a ConstRRsetPtr - a pointer to a "const" RRset -
     // underlying RRset using a ConstRRsetPtr - a pointer to a "const" RRset -
     // but we need to modify it by adding or removing an RRSIG.  We overcome
     // but we need to modify it by adding or removing an RRSIG.  We overcome