aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/localbuf.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-10 20:02:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-10 20:02:24 +0000
commit0ce4d56924982c04da226bc890033e377d1ef375 (patch)
tree7bea17dae3daf0483526989590035a52af6db8bc /src/backend/storage/buffer/localbuf.c
parentcc7cd8774a644bfb484ee31320e85764ba68d1e3 (diff)
downloadpostgresql-0ce4d56924982c04da226bc890033e377d1ef375.tar.gz
postgresql-0ce4d56924982c04da226bc890033e377d1ef375.zip
Phase 1 of fix for 'SMgrRelation hashtable corrupted' problem. This
is the minimum required fix. I want to look next at taking advantage of it by simplifying the message semantics in the shared inval message queue, but that part can be held over for 8.1 if it turns out too ugly.
Diffstat (limited to 'src/backend/storage/buffer/localbuf.c')
-rw-r--r--src/backend/storage/buffer/localbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c
index f4336736556..d8737427029 100644
--- a/src/backend/storage/buffer/localbuf.c
+++ b/src/backend/storage/buffer/localbuf.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.61 2004/12/31 22:00:49 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.62 2005/01/10 20:02:21 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -108,13 +108,13 @@ LocalBufferAlloc(Relation reln, BlockNumber blockNum, bool *foundPtr)
*/
if (bufHdr->flags & BM_DIRTY || bufHdr->cntxDirty)
{
- SMgrRelation reln;
+ SMgrRelation oreln;
/* Find smgr relation for buffer */
- reln = smgropen(bufHdr->tag.rnode);
+ oreln = smgropen(bufHdr->tag.rnode);
/* And write... */
- smgrwrite(reln,
+ smgrwrite(oreln,
bufHdr->tag.blockNum,
(char *) MAKE_PTR(bufHdr->data),
true);