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
ISC Open Source Projects
Kea
Commits
0c8f4961
Commit
0c8f4961
authored
Oct 26, 2012
by
Michal 'vorner' Vaner
Browse files
[2209] Rewrite the reload() wrapper
Some people found the previous hard to follow.
parent
dcf59e93
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/client_list.cc
View file @
0c8f4961
...
...
@@ -346,12 +346,16 @@ ConfigurableClientList::findInternal(MutableResult& candidate,
ConfigurableClientList
::
ReloadResult
ConfigurableClientList
::
reload
(
const
Name
&
name
)
{
const
ZoneWriterPair
result
(
getCachedZoneWriter
(
name
));
if
(
result
.
second
)
{
result
.
second
->
load
();
result
.
second
->
install
();
result
.
second
->
cleanup
();
if
(
result
.
first
!=
ZONE_SUCCESS
)
{
return
(
result
.
first
);
}
return
(
result
.
first
);
assert
(
result
.
second
);
result
.
second
->
load
();
result
.
second
->
install
();
result
.
second
->
cleanup
();
return
(
ZONE_SUCCESS
);
}
namespace
{
...
...
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