BIND 10 trac2906, updated. d3896075acb7d3b5dcfd8441d9ec9c40f3c44f4b [2906] some more comments about ZoneSpec::index.

BIND 10 source code commits bind10-changes at lists.isc.org
Wed May 1 03:34:31 UTC 2013


The branch, trac2906 has been updated
       via  d3896075acb7d3b5dcfd8441d9ec9c40f3c44f4b (commit)
      from  dc507ec0a035a393304313f21184c9a9c804e46e (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 d3896075acb7d3b5dcfd8441d9ec9c40f3c44f4b
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Apr 30 20:34:13 2013 -0700

    [2906] some more comments about ZoneSpec::index.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/zone_table_accessor_cache.cc |    2 +-
 src/lib/datasrc/zone_table_accessor_cache.h  |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/zone_table_accessor_cache.cc b/src/lib/datasrc/zone_table_accessor_cache.cc
index b2320ac..70c892c 100644
--- a/src/lib/datasrc/zone_table_accessor_cache.cc
+++ b/src/lib/datasrc/zone_table_accessor_cache.cc
@@ -37,7 +37,7 @@ public:
     }
 
     virtual ZoneSpec getCurrentImpl() const {
-        return (ZoneSpec(0, it_->first));
+        return (ZoneSpec(0, it_->first)); // index is always 0 in this version.
     }
 
     virtual bool isLast() const {
diff --git a/src/lib/datasrc/zone_table_accessor_cache.h b/src/lib/datasrc/zone_table_accessor_cache.h
index 466deff..ed83ff5 100644
--- a/src/lib/datasrc/zone_table_accessor_cache.h
+++ b/src/lib/datasrc/zone_table_accessor_cache.h
@@ -54,6 +54,9 @@ public:
 
     /// \brief in-memmory cache version of getIterator().
     ///
+    /// From this version of iterator, `ZoneSpec::index` will always be set
+    /// to 0 at the moment.
+    ///
     /// \throw None except std::bad_alloc in case of memory allocation failure
     virtual IteratorPtr getIterator() const;
 



More information about the bind10-changes mailing list