| 2742 | } |
| 2743 | |
| 2744 | void IcingaDB::SendCommandEnvChanged( |
| 2745 | const ConfigObject::Ptr& command, |
| 2746 | const CmdArgEnvRedisKeys& cmdRedisKeys, |
| 2747 | const Dictionary::Ptr& oldValues, |
| 2748 | const Dictionary::Ptr& newValues |
| 2749 | ) |
| 2750 | { |
| 2751 | if (!m_RconWorker || !m_RconWorker->IsConnected() || oldValues == newValues) { |
| 2752 | return; |
| 2753 | } |
| 2754 | |
| 2755 | for (const auto& envvarKey : GetDictionaryDeletedKeys(oldValues, newValues)) { |
| 2756 | String id = HashValue(new Array({m_EnvironmentId, envvarKey, command->GetName()})); |
| 2757 | EnqueueRelationsDeletion(id, {{cmdRedisKeys.EnvObjectKey, cmdRedisKeys.EnvChecksumKey}}); |
| 2758 | } |
| 2759 | } |
| 2760 | |
| 2761 | void IcingaDB::SendCommandArgumentsChanged( |
| 2762 | const ConfigObject::Ptr& command, |
no test coverage detected