RedisWriter: Add depth attribute to zone

This commit is contained in:
Noah Hilverling 2019-07-29 14:43:09 +02:00 committed by Michael Friedrich
parent 8421a98a2c
commit 11d5415193

View File

@ -713,6 +713,9 @@ bool RedisWriter::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr
attributes->Set("parent_id", GetObjectIdentifier(zone));
}
auto parentsRaw (zone->GetAllParentsRaw());
attributes->Set("depth", parentsRaw.size());
return true;
}