From a68ef61a1024a050e03d12cc7740dbc6e5175480 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli Date: Tue, 30 Nov 2021 10:32:38 -0600 Subject: [PATCH] use _ instead of masterField to designate top level structure in the request --- src/copy/pvCopy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/copy/pvCopy.cpp b/src/copy/pvCopy.cpp index 6458c3a..7694ecf 100644 --- a/src/copy/pvCopy.cpp +++ b/src/copy/pvCopy.cpp @@ -437,10 +437,10 @@ bool PVCopy::init(epics::pvData::PVStructurePtr const &pvRequest) entireMaster = true; } else { - // If masterField is in the request, but not in the master structure, - // then assume entire master is requested - PVStructurePtr masterFieldPtr = pvMaster->getSubField("masterField"); - PVStructurePtr requestFieldPtr = pvRequest->getSubField("masterField"); + // If "_" is in the request, but not in the master structure, + // then assume the top level PV structure is requested + PVStructurePtr masterFieldPtr = pvMaster->getSubField("_"); + PVStructurePtr requestFieldPtr = pvRequest->getSubField("_"); if (!masterFieldPtr && requestFieldPtr) { entireMaster = true; pvOptions = requestFieldPtr->getSubField("_options");