BIND 10 #2852: Add an API for (re)setting a memory segment to ConfigurableClientList

BIND 10 Development do-not-reply at isc.org
Fri Mar 15 07:08:03 UTC 2013


#2852: Add an API for (re)setting a memory segment to ConfigurableClientList
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:
                Type:  task          |                       Status:  new
            Priority:  medium        |                    Milestone:  Next-
           Component:  data source   |  Sprint-Proposed
            Keywords:                |                   Resolution:
           Sensitive:  0             |                 CVSS Scoring:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |  shared memory data source
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Description changed by jinmei:

Old description:

> Subtask of #2830.  Depend on #2850.
>
> It would look like this:
>
> {{{#!cpp
> // params: opaque parameter specific to the memory segment type
> // in case of "mapped" segment, it would be something like:
> // {"mapped-file": "/var/bind10/mapped-files/zone-sqlite3.mapped.0"}
> void
> ConfigurableClientList::resetMemorySegment(const string& datasrc_name,
>                                            MemorySegmentMode mode,
>                                            ConstElementPtr params);
> }}}
>
> It would simply call the corresponding `ZoneTableSegment::reset()`.
>
> For mode, see #2850.
>
> Also add python wrapper of this method.

New description:

 Subtask of #2830.  Depend on #2850.

 It would look like this:

 {{{#!cpp
 // params: opaque parameter specific to the memory segment type
 // in case of "mapped" segment, it would be something like:
 // {"mapped-file": "/var/bind10/mapped-files/zone-sqlite3.mapped.0"}
 void
 ConfigurableClientList::resetMemorySegment(const string& datasrc_name,
                                            MemorySegmentMode mode,
                                            ConstElementPtr params);
 }}}

 It would simply call the corresponding `ZoneTableSegment::reset()`.

 For mode parameter, see #2850.

 Also add python wrapper of this method.

--

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


More information about the bind10-tickets mailing list