/*
- * $Id: StoreIOState.cc,v 1.3 2003/02/21 22:50:06 robertc Exp $
+ * $Id: StoreIOState.cc,v 1.4 2003/08/31 12:44:30 robertc Exp $
*
* DEBUG: section ?? Swap Dir base object
* AUTHOR: Robert Collins
storeIOState::~storeIOState()
{
+ debugs(20,3, "StoreIOState::~StoreIOState: " << this);
+
if (read.callback_data)
cbdataReferenceDone(read.callback_data);
/*
- * $Id: store_io_ufs.cc,v 1.22 2003/08/04 22:14:53 robertc Exp $
+ * $Id: store_io_ufs.cc,v 1.23 2003/08/31 12:44:31 robertc Exp $
*
* DEBUG: section 79 Storage Manager UFS Interface
* AUTHOR: Duane Wessels
UFSStoreState::doCallback(int errflag)
{
debug(79, 3) ("storeUfsIOCallback: errflag=%d\n", errflag);
- /* We are finished with the file as this is on close or error only.*/
- theFile = NULL;
-
STIOCB *theCallback = callback;
callback = NULL;
if (cbdataReferenceValidDone(callback_data, &cbdata) && theCallback)
theCallback(cbdata, errflag, this);
+
+ /* We are finished with the file as this is on close or error only.*/
+ /* This must be the last line, as theFile may be the only object holding
+ * us in memory
+ */
+ theFile = NULL;
}
/* ============= THE REAL UFS CODE ================ */