aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-01-28 21:02:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-01-28 21:02:40 +0000
commit2f0d43b251f5bfc257d45835965861202fcd263b (patch)
tree257546d7fbd03c9ae8eae54cb6eb5fb2995653d9 /src/backend/access/transam
parentb3ead7c045382b5942b345239499bab0adcaef78 (diff)
downloadpostgresql-2f0d43b251f5bfc257d45835965861202fcd263b.tar.gz
postgresql-2f0d43b251f5bfc257d45835965861202fcd263b.zip
Review uses of IsUnderPostmaster, change some tests to look at
whereToSendOutput instead because they are really inquiring about the correct client communication protocol. Update some comments. This is pointing towards supporting regular FE/BE client protocol in a standalone backend, per discussion a month or so back.
Diffstat (limited to 'src/backend/access/transam')
-rw-r--r--src/backend/access/transam/slru.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c
index 73c481c46b7..ba3054f14bb 100644
--- a/src/backend/access/transam/slru.c
+++ b/src/backend/access/transam/slru.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.9 2004/01/26 22:35:31 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.10 2004/01/28 21:02:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -184,14 +184,12 @@ SimpleLruInit(SlruCtl ctl, const char *name, const char *subdir)
shared = (SlruShared) ptr;
#ifdef EXEC_BACKEND
-
/*
* Locks are in shared memory
*/
locks = (SlruLock) (ptr + MAXALIGN(sizeof(SlruSharedData)) +
BLCKSZ * NUM_CLOG_BUFFERS);
#else
-
/*
* Locks are in private memory
*/
@@ -200,10 +198,9 @@ SimpleLruInit(SlruCtl ctl, const char *name, const char *subdir)
Assert(locks);
#endif
-
if (!IsUnderPostmaster)
- /* Initialize locks and shared memory area */
{
+ /* Initialize locks and shared memory area */
char *bufptr;
int slotno;
@@ -229,11 +226,9 @@ SimpleLruInit(SlruCtl ctl, const char *name, const char *subdir)
else
Assert(found);
-
ctl->locks = locks;
ctl->shared = shared;
-
/* Init directory path */
snprintf(ctl->Dir, MAXPGPATH, "%s/%s", DataDir, subdir);
}