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)
(cherry picked from commit cdd843a998
)
This commit is contained in:
parent
22fcdd868d
commit
b623274918
|
@ -159,7 +159,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