/*
- * $Id: store_dir_aufs.cc,v 1.40 2001/11/13 18:11:19 hno Exp $
+ * $Id: store_dir_aufs.cc,v 1.41 2002/02/19 00:50:01 hno Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
snprintf(rb->fullpath, SQUID_MAXPATHLEN, "%s/%02X/%02X",
rb->sd->path,
rb->curlvl1, rb->curlvl2);
- if (rb->flags.init && rb->td != NULL)
- closedir(rb->td);
- rb->td = NULL;
if (dirs_opened)
return -1;
rb->td = opendir(rb->fullpath);
store_open_disk_fd++;
continue;
}
+ if (rb->td != NULL)
+ closedir(rb->td);
+ rb->td = NULL;
rb->in_dir = 0;
if (++rb->curlvl2 < aioinfo->l2)
continue;
/*
- * $Id: store_dir_diskd.cc,v 1.58 2001/11/13 18:11:20 hno Exp $
+ * $Id: store_dir_diskd.cc,v 1.59 2002/02/19 00:50:01 hno Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
snprintf(rb->fullpath, SQUID_MAXPATHLEN, "%s/%02X/%02X",
rb->sd->path,
rb->curlvl1, rb->curlvl2);
- if (rb->flags.init && rb->td != NULL)
- closedir(rb->td);
- rb->td = NULL;
if (dirs_opened)
return -1;
rb->td = opendir(rb->fullpath);
store_open_disk_fd++;
continue;
}
+ if (rb->td != NULL)
+ closedir(rb->td);
+ rb->td = NULL;
rb->in_dir = 0;
if (++rb->curlvl2 < diskdinfo->l2)
continue;
/*
- * $Id: store_dir_ufs.cc,v 1.39 2001/11/13 18:11:21 hno Exp $
+ * $Id: store_dir_ufs.cc,v 1.40 2002/02/19 00:50:01 hno Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
rb->sd->path,
rb->curlvl1,
rb->curlvl2);
- if (rb->flags.init && rb->td != NULL)
- closedir(rb->td);
- rb->td = NULL;
if (dirs_opened)
return -1;
rb->td = opendir(rb->fullpath);
store_open_disk_fd++;
continue;
}
+ if (rb->td != NULL)
+ closedir(rb->td);
+ rb->td = NULL;
rb->in_dir = 0;
if (++rb->curlvl2 < ufsinfo->l2)
continue;