mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Lock Objects during serialization
old behaviour was to only lock arrays, dictionaries and namespaces but not other objects (cherry picked from commit 91296c2a250b1aeb0976f252eba5ffdce93c8590)
This commit is contained in:
parent
ae3590023b
commit
68418eb6bc
@ -146,6 +146,8 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes,
|
||||
DictionaryData fields;
|
||||
fields.reserve(type->GetFieldCount() + 1);
|
||||
|
||||
ObjectLock olock(input);
|
||||
|
||||
for (int i = 0; i < type->GetFieldCount(); i++) {
|
||||
Field field = type->GetFieldInfo(i);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user