Skip to content
Snippets Groups Projects
Commit 772dd72a authored by Johannes Mey's avatar Johannes Mey
Browse files

new configuration change detection.

parent a89c4e57
No related branches found
No related tags found
No related merge requests found
...@@ -368,6 +368,22 @@ public class ERISConnector { ...@@ -368,6 +368,22 @@ public class ERISConnector {
} }
logger.debug(" -> config has changed for living partition {}: {}", livingPartition, configHasChanged); logger.debug(" -> config has changed for living partition {}: {}", livingPartition, configHasChanged);
// figure out if the config has changed by comparing the new and old config by access path and attributes
configHasChanged = false;
if (livingPartition.getConfigurations().size() != configsToUse.size()) {
configHasChanged = true;
} else {
outer: for (ERISLPConfiguration newConfig : configsToUse) {
for (ERISLPConfiguration oldConfig : livingPartition.getConfigurations()) {
if (oldConfig.getAccessPath() == newConfig.getAccessPath() && oldConfig.getAttributesAndKeys().containsAll(newConfig.getAttributesAndKeys())) {
continue outer;
}
}
configHasChanged = true;
break;
}
}
if (configHasChanged) { if (configHasChanged) {
// write back changed config // write back changed config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment