dont allow asynchronous completion error code to drop down to lower layers

This commit is contained in:
Jeff Hill
2002-08-22 21:42:31 +00:00
parent a5b1beb9da
commit 69790213e3

View File

@@ -986,17 +986,17 @@ caStatus casStrmClient::claimChannelAction()
if ( this->asyncIOFlag ) {
status = S_cas_success;
}
else if (pvar.getStatus() == S_casApp_asyncCompletion) {
status = this->createChanResponse(*mp, S_cas_badParameter);
errMessage(S_cas_badParameter,
"- expected asynch IO creation from caServer::pvAttach()");
else if ( pvar.getStatus() == S_casApp_asyncCompletion ) {
status = this->createChanResponse ( *mp, S_cas_badParameter );
errMessage ( S_cas_badParameter,
"- expected asynch IO creation from caServer::pvAttach()" );
}
else if (pvar.getStatus() == S_casApp_postponeAsyncIO) {
else if ( pvar.getStatus() == S_casApp_postponeAsyncIO ) {
status = S_casApp_postponeAsyncIO;
this->ctx.getServer()->addItemToIOBLockedList(*this);
this->ctx.getServer()->addItemToIOBLockedList ( *this );
}
else {
status = this->createChanResponse(*mp, pvar);
status = this->createChanResponse ( *mp, pvar );
}
return status;
}
@@ -1067,8 +1067,9 @@ caStatus casStrmClient::createChanResponse ( const caHdrLargeArray & hdr, const
fprintf ( stderr,
"Application returned %d from casPV::read()"
" - expected S_casApp_asyncCompletion\n", status);
status = S_casApp_asyncCompletion;
status = S_cas_success;
}
status = S_cas_success;
}
else if ( status == S_casApp_asyncCompletion) {
status = S_cas_badParameter;