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:
Michael Davidsaver
2026-05-24 14:34:41 -07:00
parent 7ae3ca84c0
commit 5353b02a33
+1 -1
View File
@@ -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
}