mirror of https://github.com/Icinga/icinga2.git
another small adjustment by the way just to ensure the object on stack ist the same as the one serialized further in case the object does not implement locking on mutation (besides it's mor efficient to not fetch the same value twice)
This commit is contained in:
parent
44ac6cf1ec
commit
cdd843a998
|
@ -142,7 +142,7 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes,
|
|||
|
||||
Value value = input->GetField(i);
|
||||
stack.Push(field.Name, value);
|
||||
fields.emplace_back(field.Name, SerializeInternal(input->GetField(i), attributeTypes, stack));
|
||||
fields.emplace_back(field.Name, SerializeInternal(value, attributeTypes, stack));
|
||||
stack.Pop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue