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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user