Skip to content
Snippets Groups Projects
Commit dfc1b820 authored by scott snyder's avatar scott snyder
Browse files

AthContainers: Make DataVector::m_ownPolicy transient.

Ownership policy should be decided by the P->T converter, so don't
save this member.

Most of the time, this doesn't matter.  But past converter infrastructure
changes meant that non-xAOD DV classes that were saved directly (without
TP conversion) could leak their contents on read.

See ATEAM-780.
parent 905ec042
No related branches found
No related tags found
No related merge requests found
// This file's extension implies that it's C, but it's really -*- C++ -*-.
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
/**
* @file AthContainers/DataVector.h
......@@ -3332,6 +3332,10 @@ public:
ROOT_SELECTION_NS::MemberAttributes< kTransient > m_isMostDerived;
ROOT_SELECTION_NS::MemberAttributes< kTransient > m_deleter;
/// We do not want to save this. The P->T converter should
/// decide the ownership mode.
ROOT_SELECTION_NS::MemberAttributes< kTransient > m_ownPolicy;
};
EXIT_ROOT_SELECTION_NS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment