ioc: fix single PUT with 'record[block=true, process=true]'
No point to wait for processing, when none will occur.
However, wait as requested when Unset or True.
Somewhere between 409b432dd96b65e8c69d35fe8810081b8ff87a0a
and 93e4d3eef3
the sense of this test was lost.
This commit is contained in:
@@ -347,7 +347,7 @@ void onOp(const std::shared_ptr<SingleInfo>& sInfo, const Value& valuePrototype,
|
||||
auto& pvRequest = putOperation->pvRequest();
|
||||
pvRequest["record._options.block"].as<bool>(putOperationCache->doWait);
|
||||
IOCSource::setForceProcessingFlag(putOperation.get(), pvRequest, putOperationCache->forceProcessing);
|
||||
if (putOperationCache->forceProcessing) {
|
||||
if (putOperationCache->forceProcessing == TriState::False) {
|
||||
putOperationCache->doWait = false; // no point in waiting
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user