1: # include <ingres.h> 2: # include <aux.h> 3: # include <access.h> 4: # include <sccs.h> 5: 6: SCCSID(@(#)cleanrel.c 8.1 12/31/84) 7: 8: /* 9: ** CLEANREL -- 10: ** If there are any buffers being used by the relation described 11: ** in the descriptor struct, flush and zap the buffer. 12: ** This will force a UNIX disk read the next time the relation 13: ** is accessed which is useful to get the most up-to-date 14: ** information from a file that is being updated by another 15: ** program. 16: */ 17: 18: cleanrel(d) 19: DESC *d; 20: { 21: /* flush and reset all pages of this rel */ 22: return (flush_rel(d, TRUE)); 23: }