aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-15 10:44:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-15 10:44:28 -0400
commit6b85d4ba9b09dc94cf1b14aef517da095a83cdbb (patch)
tree3324b2a0b34cda02b2963c5506f3881af9d084c4 /src/backend/storage/buffer/bufmgr.c
parentba8fe38f58e2f3d86c5361373598af80d5ce4443 (diff)
downloadpostgresql-6b85d4ba9b09dc94cf1b14aef517da095a83cdbb.tar.gz
postgresql-6b85d4ba9b09dc94cf1b14aef517da095a83cdbb.zip
Fix portability problem induced by commit a6f6b7819.
pg_xlogdump includes bufmgr.h. With a compiler that emits code for static inline functions even when they're unreferenced, that leads to unresolved external references in the new static-inline version of BufferGetPage(). So hide it with #ifndef FRONTEND, as we've done for similar issues elsewhere. Per buildfarm member pademelon.
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
-rw-r--r--src/backend/storage/buffer/bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index 462dd4a2262..a2b2c66a86a 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -4299,7 +4299,7 @@ IssuePendingWritebacks(WritebackContext *context)
* For best performance, keep the tests that are fastest and/or most likely to
* exclude a page from old snapshot testing near the front.
*/
-extern void
+void
TestForOldSnapshot(Snapshot snapshot, Relation relation, Page page)
{
Assert(relation != NULL);