diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-29 21:17:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-29 21:17:39 +0000 |
commit | 6d61cdec0761dc1f86a196899825b52b1186d00e (patch) | |
tree | 654a0eceb4b0b324ca05c292cb1877d6a45501ee /src/backend/utils/init/postinit.c | |
parent | 2154e1c11e4fbb6b41f6db1ea7c49e25f98d0df7 (diff) | |
download | postgresql-6d61cdec0761dc1f86a196899825b52b1186d00e.tar.gz postgresql-6d61cdec0761dc1f86a196899825b52b1186d00e.zip |
Clean up and document the API for XLogOpenRelation and XLogReadBuffer.
This commit doesn't make much functional change, but it does eliminate some
duplicated code --- for instance, PageIsNew tests are now done inside
XLogReadBuffer rather than by each caller.
The GIST xlog code still needs a lot of love, but I'll worry about that
separately.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index f2b20ad1d2e..3c4c0feeef0 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.161 2006/03/05 15:58:46 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.162 2006/03/29 21:17:39 tgl Exp $ * * *------------------------------------------------------------------------- @@ -166,7 +166,7 @@ ReverifyMyDatabase(const char *name) * other backend will eventually try to write them and die in * mdblindwrt. Flush any such pages to forestall trouble. */ - DropBuffers(MyDatabaseId); + DropDatabaseBuffers(MyDatabaseId); /* Now I can commit hara-kiri with a clear conscience... */ ereport(FATAL, (errcode(ERRCODE_UNDEFINED_DATABASE), |