Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
3194a201
Commit
3194a201
authored
Jul 10, 2013
by
Michal 'vorner' Vaner
Browse files
[2862] Reset the segment upon command
parent
7cd60567
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/datasrc_clients_mgr.h
View file @
3194a201
...
...
@@ -627,7 +627,21 @@ private:
}
void
doSegmentUpdate
(
const
isc
::
data
::
ConstElementPtr
&
arg
)
{
(
void
)
arg
;
// TODO: Error handling. Invalid RRClass, non-existing stuff, exceptions
const
isc
::
dns
::
RRClass
rrclass
(
arg
->
get
(
"data-source-class"
)
->
stringValue
());
const
std
::
string
&
name
(
arg
->
get
(
"data-source-name"
)
->
stringValue
());
const
isc
::
data
::
ConstElementPtr
&
segment_params
=
arg
->
get
(
"segment-params"
);
typename
MutexType
::
Locker
locker
(
*
map_mutex_
);
const
boost
::
shared_ptr
<
isc
::
datasrc
::
ConfigurableClientList
>&
list
=
(
**
clients_map_
)[
rrclass
];
if
(
!
list
)
{
// TODO: Log error
return
;
}
list
->
resetMemorySegment
(
name
,
isc
::
datasrc
::
memory
::
ZoneTableSegment
::
READ_ONLY
,
segment_params
);
}
void
doLoadZone
(
const
isc
::
data
::
ConstElementPtr
&
arg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment