From d812b214b67fa6787b8b733b549b7f7fd9af581d Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Mon, 3 Apr 1989 19:12:41 +0000 Subject: [PATCH] ING_DB --- WEGA/contrib/ingres/dbs/src/access/cleanrel.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 WEGA/contrib/ingres/dbs/src/access/cleanrel.c diff --git a/WEGA/contrib/ingres/dbs/src/access/cleanrel.c b/WEGA/contrib/ingres/dbs/src/access/cleanrel.c new file mode 100644 index 0000000..423600e --- /dev/null +++ b/WEGA/contrib/ingres/dbs/src/access/cleanrel.c @@ -0,0 +1,17 @@ +# include "gen.h" +# include "../h/dbs.h" +# include "../h/aux.h" +# include "../h/access.h" + +/* CLEANREL -- */ +/* If there are any buffers being used by the relation described */ +/* in the descriptor struct, flush and zap the buffer. */ +/* This will force a disk read the next time the relation */ +/* is accessed which is useful to get the most up-to-date */ +/* information from a file that is being updated by another */ +/* program. */ +cleanrel(d) +register DESC *d; +{ + return (AAam_flush_rel(d, TRUE)); /* flush and reset all pages of this rel */ +}