Skip to content

StoreGate: Ensure that WriteDecorHandle makes an alias.

In a previous change we had:

WriteDecorHandle makes an alias for the decoration when its ReadHandle part
is dereferenced.  However, if one accesses the decoration directly, without
dereferencing the handle, then this didn't happen.  This could happen,
for example, if one had two WriteDecorHandle's for the same container.
Add a cptr() call to operator() to ensure that the alias gets made.

However, there are two relevant operator() overloads and only one was fixed with the previous change. Fix the other one now (also need to change it to be non-const).

Also fix ReadDecorHandle::isAvailable so that it doesn't crash if the container is not available.

See ATLASRECTS-5265.

Merge request reports