do not proceed with pvcopy in master field callback unless master field was requested

This commit is contained in:
Sinisa Veseli
2024-04-30 13:09:33 -05:00
parent 9d94e95521
commit 94b48e4893

View File

@ -292,6 +292,12 @@ void MonitorLocal::dataPut(PVRecordFieldPtr const & pvRecordField)
{
cout << "MonitorLocal::dataPut(pvRecordField)" << endl;
}
// If this record field is the master field, and the master field was not
// requested, we do not proceed with copy
bool isMasterField = pvRecordField->getPVRecord()->getPVStructure()->getFieldOffset()==0;
if (isMasterField && !pvCopy->isMasterFieldRequested()) {
return;
}
if(state!=active) return;
{
Lock xx(mutex);