do not proceed with pvcopy in master field callback unless master field was requested
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user