BIND 10 #1287: ZoneIterator will need an internal finder

BIND 10 Development do-not-reply at isc.org
Wed Nov 2 17:56:33 UTC 2011


#1287: ZoneIterator will need an internal finder
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  jinmei
  jinmei                             |                Status:  reviewing
                       Type:  task   |             Milestone:
                   Priority:  major  |  Sprint-20111108
                  Component:  data   |            Resolution:
  source                             |             Sensitive:  0
                   Keywords:         |           Sub-Project:  DNS
            Defect Severity:  N/A    |  Estimated Difficulty:  0
Feature Depending on Ticket:         |           Total Hours:  0
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by jinmei):

 Replying to [comment:9 vorner]:

 Thanks for the review.

 > Just some minor things:
 > * This is probably rest of the one commit of mine, but I guess it's no
 longer needed (in database.cc):
 > {{{#!c++
 > +
 > +    virtual ZoneFinder& getFinder() {
 > +        isc_throw(NotImplemented, "Not implemented");
 > +    }
 > }}}

 Ah, good catch.  Removed.

 > * I guess this is never called multiple times? Otherwise the copy will
 be done to itself. Would that be OK?
 > {{{#!c++
 > virtual void startTransaction() {
 >       // Currently we only use this transaction for simple read-only
 >       // operations.  So we just make a local copy of the data (we don't
 >       // care about what happens after commit() or rollback()).
 >       readonly_records_copy_ = *readonly_records_;
 >       readonly_records_ = &readonly_records_copy_;
 > }
 > }}}

 It wouldn't be okay, and right now, for simplicity, we assume it's called
 at most once.  I added some note about this and added explicit check code
 so that we can notice that more explicilty should this happen with a buggy
 test case.

 > * A typo: `updateAfterDelteIterator`

 Thanks, fixed.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1287#comment:10>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list