Commit a433d01a authored by Linus Tolke Y's avatar Linus Tolke Y
Browse files

Simple bugfix in the logging code. Made the server dump core when

someone deleted a text and the server was "garbing".
parent c4e3f18f
Tue Dec 1 00:17:23 1992 Linus Tolke Y (linus@mauritz)
* version.incl: Version 1.2.8.
* simple-cache.c (cache_delete_text): Simple bug in the logging of
deleting texts.
Sun Nov 22 16:06:36 1992 Per Cederqvist (ceder@mauritz)
* version.incl: Version 1.2.7.
......
/*
* $Id: simple-cache.c,v 0.28 1992/11/22 15:14:47 ceder Exp $
* $Id: simple-cache.c,v 0.29 1992/11/30 23:29:16 linus Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.28 1992/11/22 15:14:47 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.29 1992/11/30 23:29:16 linus Exp $";
/*
......@@ -165,6 +165,8 @@ static int garb_running = 0;
static void log_access(Log_type t,
int id)
{
extern int putw(int, FILE *);
if (garb_running + syncing_or_saving == 0)
{
putc(t, logfile);
......@@ -707,11 +709,10 @@ cached_delete_text(Text_no text)
#ifdef LOGACCESSES
if (garb_running)
{
putc(t, lt_garb_text);
putw(id, text);
LOGACC(lt_garb_text, text);
}
else
log_access(lt_delete_text, text);
LOGACC(lt_delete_text, text);
#endif
return OK;
}
......
/*
* $Id: version.incl,v 0.34 1992/11/22 15:14:55 ceder Exp $
* $Id: version.incl,v 0.35 1992/11/30 23:29:22 linus Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -27,4 +27,4 @@
* The version number is encoded in a long. It shall be printed as
* in sed s/\(.*\)\(..\)\(..\)/\1.\2.\3/
*/
10207
10208
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