From 31d625516964c5aa80b35452fc827818fb6e796e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 4 Mar 2009 19:33:18 +0000 Subject: [PATCH] fix for deleteing IO that wasnt selected for delete nor removed from the list in clearOutstandingReads. This problem would probably only occur with R3.13 clients, and only then if the R3.13 client times out in ca_pend_io. --- src/cas/generic/casPVI.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cas/generic/casPVI.cc b/src/cas/generic/casPVI.cc index 3a7845346..d271daad0 100644 --- a/src/cas/generic/casPVI.cc +++ b/src/cas/generic/casPVI.cc @@ -375,10 +375,10 @@ void casPVI::clearOutstandingReads ( tsDLList < casAsyncIOI > & ioList ) ++tmp; if ( iterIO->oneShotReadOP () ) { ioList.remove ( *iterIO ); + delete iterIO.pointer (); assert ( this->nIOAttached != 0 ); this->nIOAttached--; } - delete iterIO.pointer (); iterIO = tmp; } }