Commit bb37d5d7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(cache_sync_all): New name for former cache_sync.

parent e18a50da
/*
* $Id: dbck-cache.c,v 0.35 1998/12/26 22:40:34 byers Exp $
* $Id: dbck-cache.c,v 0.36 1999/04/03 22:11:39 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,7 +39,7 @@
static const char *
rcsid = "$Id: dbck-cache.c,v 0.35 1998/12/26 22:40:34 byers Exp $";
rcsid = "$Id: dbck-cache.c,v 0.36 1999/04/03 22:11:39 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -568,7 +568,7 @@ timerdiff(struct timeval a,
#endif
extern void /* Write out everything. */
cache_sync(void)
cache_sync_all(void)
{
FILE *fp;
long i;
......@@ -597,14 +597,14 @@ cache_sync(void)
}
if ( rename(param.datafile_name, param.backupfile_name) != 0 )
log("WARNING: cache_sync: can't backup.\n");
log("WARNING: cache_sync_all: can't backup.\n");
}
else
log("cache_sync: datafile not clean. No backup taken.\n");
log("cache_sync_all: datafile not clean. No backup taken.\n");
if ( (fp=fopen(param.datafile_name, "w") ) == NULL )
{
log("WARNING: cache_sync: can't open file to save in.\n");
log("WARNING: cache_sync_all: can't open file to save in.\n");
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment