/*
- * $Id: store_dir_coss.cc,v 1.41 2002/12/27 10:26:36 robertc Exp $
+ * $Id: store_dir_coss.cc,v 1.42 2003/01/09 11:49:53 hno Exp $
*
* DEBUG: section 47 Store COSS Directory Routines
* AUTHOR: Eric Stern
if (s.op == SWAP_LOG_ADD) {
(void) 0;
} else if (s.op == SWAP_LOG_DEL) {
- if ((e = storeGet(s.key)) != NULL) {
+ /* Delete unless we already have a newer copy */
+ if ((e = storeGet(s.key)) != NULL && s.lastref > e->lastref) {
/*
* Make sure we don't unlink the file, it might be
* in use by a subsequent entry. Also note that
/*
- * $Id: ufscommon.cc,v 1.5 2002/12/27 10:26:34 robertc Exp $
+ * $Id: ufscommon.cc,v 1.6 2003/01/09 11:49:35 hno Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
if (s.op == SWAP_LOG_ADD) {
(void) 0;
} else if (s.op == SWAP_LOG_DEL) {
- if ((e = storeGet(s.key)) != NULL) {
+ /* Delete unless we already have a newer copy */
+ if ((e = storeGet(s.key)) != NULL && s.lastref > e->lastref) {
/*
* Make sure we don't unlink the file, it might be
* in use by a subsequent entry. Also note that