summaryrefslogtreecommitdiff
path: root/src/include/storage/bufmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/bufmgr.h')
-rw-r--r--src/include/storage/bufmgr.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index 89447d0b3d4..42d9120ed38 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -55,7 +55,6 @@ extern int target_prefetch_pages;
/* in buf_init.c */
extern PGDLLIMPORT char *BufferBlocks;
-extern PGDLLIMPORT int32 *PrivateRefCount;
/* in localbuf.c */
extern PGDLLIMPORT int NLocBuffer;
@@ -102,24 +101,6 @@ extern PGDLLIMPORT int32 *LocalRefCount;
)
/*
- * BufferIsPinned
- * True iff the buffer is pinned (also checks for valid buffer number).
- *
- * NOTE: what we check here is that *this* backend holds a pin on
- * the buffer. We do not care whether some other backend does.
- */
-#define BufferIsPinned(bufnum) \
-( \
- !BufferIsValid(bufnum) ? \
- false \
- : \
- BufferIsLocal(bufnum) ? \
- (LocalRefCount[-(bufnum) - 1] > 0) \
- : \
- (PrivateRefCount[(bufnum) - 1] > 0) \
-)
-
-/*
* BufferGetBlock
* Returns a reference to a disk page image associated with a buffer.
*