mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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 cdd843a998bfaa5028369a3fd6d5368bdc6ee568)
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…
x
Reference in New Issue
Block a user