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