Commit 0c8f4961 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2209] Rewrite the reload() wrapper

Some people found the previous hard to follow.
parent dcf59e93
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment