summaryrefslogtreecommitdiffstats
path: root/src/lib/process
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-06-28 17:20:30 +0200
committerFrancis Dupont <fdupont@isc.org>2023-06-29 15:45:26 +0200
commite16ade899f49107be232e48ddbacc31f30d44efb (patch)
tree8d4207518845d501118a4a29fc929acbbf7a3a51 /src/lib/process
parent[#2947] Bug fixed (diff)
downloadkea-e16ade899f49107be232e48ddbacc31f30d44efb.tar.xz
kea-e16ade899f49107be232e48ddbacc31f30d44efb.zip
[#2947] Extra updates
Diffstat (limited to 'src/lib/process')
-rw-r--r--src/lib/process/d_controller.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/process/d_controller.cc b/src/lib/process/d_controller.cc
index feee1b178d..3611907ed8 100644
--- a/src/lib/process/d_controller.cc
+++ b/src/lib/process/d_controller.cc
@@ -462,7 +462,7 @@ DControllerBase::configGetHandler(const std::string&,
ConstElementPtr
DControllerBase::configHashGetHandler(const std::string&,
ConstElementPtr /*args*/) {
- ElementPtr config = process_->getCfgMgr()->getContext()->toElement();
+ ConstElementPtr config = process_->getCfgMgr()->getContext()->toElement();
std::string hash = BaseCommandMgr::getHash(config);
ElementPtr params = Element::createMap();
params->set("hash", Element::create(hash));
@@ -650,6 +650,13 @@ DControllerBase::configSetHandler(const std::string&, ConstElementPtr args) {
ConstElementPtr answer = updateConfig(module_config);
int rcode = 0;
parseAnswer(rcode, answer);
+
+ // When succeeded append the SHA256 hash of the config that
+ // was just set to the response.
+ if (rcode == CONTROL_RESULT_SUCCESS) {
+ // @todo
+ }
+
// In all cases the right logging configuration is in the context.
process_->getCfgMgr()->getContext()->applyLoggingCfg();
return (answer);