system. The code was assuming that these functions are defined
for all storage types. That caused coredumps upon reconfigure. Now
only call those functions if non-NULL.
/*
- * $Id: store_dir.cc,v 1.127 2001/02/23 20:59:51 hno Exp $
+ * $Id: store_dir.cc,v 1.128 2001/03/13 19:11:25 wessels Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
SwapDir *sd;
for (dirn = 0; dirn < Config.cacheSwap.n_configured; dirn++) {
sd = &Config.cacheSwap.swapDirs[dirn];
- sd->log.open(sd);
+ if (sd->log.open)
+ sd->log.open(sd);
}
}
SwapDir *sd;
for (dirn = 0; dirn < Config.cacheSwap.n_configured; dirn++) {
sd = &Config.cacheSwap.swapDirs[dirn];
- sd->log.close(sd);
+ if (sd->log.close)
+ sd->log.close(sd);
}
}