detect Structure caching error

The assert in the client side copy is hit during
some kind of failure to keep the Field cache
up to date.
This commit is contained in:
Michael Davidsaver
2018-06-20 18:09:12 -07:00
parent de6586b92f
commit e08de8c2df
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include <osiSock.h>
#include <epicsGuard.h>
#include <epicsAssert.h>
#include <pv/lock.h>
#include <pv/timer.h>
@@ -105,6 +106,7 @@ public:
PVStructure::shared_pointer const & pvStructure,
BitSet::shared_pointer const & existingBitSet)
{
assert(pvStructure);
int pvStructureSize = pvStructure->getNumberFields();
if (existingBitSet.get() && static_cast<int32>(existingBitSet->size()) >= pvStructureSize)
{