From b58c0411bad414a5dbde8b38f615867c68adf55c Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Fri, 20 Oct 2000 11:01:21 +0000 Subject: redo/undo support functions and cleanups. --- src/include/storage/buf_internals.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include/storage/buf_internals.h') diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index 12bf6604da1..86512e50bf8 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: buf_internals.h,v 1.39 2000/10/18 05:50:16 vadim Exp $ + * $Id: buf_internals.h,v 1.40 2000/10/20 11:01:21 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -121,10 +121,19 @@ typedef struct sbufdesc * * Why we keep relId here? To re-use file descriptors. On rollback * WAL uses dummy relId - bad (more blind writes - open/close calls), - * but allowable. Obviously we should have another cache in file manager. + * but allowable. Obviously we should have another cache in file manager + * - fd is not relcache deal. */ LockRelId relId; BufferBlindId blind; /* was used to support blind write */ + + /* + * When we can't delete item from page (someone else has buffer pinned) + * we mark buffer for cleanup by specifying appropriate for buffer + * content cleanup function. Buffer will be cleaned up from release + * buffer functions. + */ + void (*CleanupFunc)(Buffer); } BufferDesc; /* -- cgit v1.2.3