-/* $Id: commit.c,v 1.25 2005-04-15 10:47:47 adam Exp $
+/* $Id: commit.c,v 1.26 2006-04-05 02:02:36 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
#define CF_OPTIMIZE_COMMIT 0
-void cf_unlink (CFile cf)
+void cf_unlink(CFile cf)
{
if (cf->bucket_in_memory)
{
-/* $Id: mfile.c,v 1.62 2005-06-14 20:28:53 adam Exp $
+/* $Id: mfile.c,v 1.63 2006-04-05 02:02:36 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
{
int i;
- yaz_log (YLOG_DEBUG, "mf_close(%s)", mf->name);
+ yaz_log (YLOG_DEBUG, "mf_close(%s) unlink=%d", mf->name, mf->unlink_flag);
assert(mf->open);
for (i = 0; i < mf->no_files; i++)
{
int mf_unlink(MFile mf)
{
if (mf->open)
+ {
mf->unlink_flag = 1;
+ }
else
{
int i;
return 0;
}
-/*
- * Unlink the file by name, rather than MFile-handle. File should be closed.
- */
-int mf_unlink_name(MFile_area ma, const char *name)
-{
- abort();
- return 0;
-}
-/* $Id: mfile.h,v 1.2 2005-01-15 19:38:18 adam Exp $
+/* $Id: mfile.h,v 1.3 2006-04-05 02:02:37 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
*/
void mf_reset(MFile_area ma);
-/*
- * Unlink the file by name, rather than MFile-handle.
- */
-int mf_unlink_name(MFile_area, const char *name);
-
YAZ_END_CDECL
#endif