diff options
| author | Tom Lane | 2008-11-03 20:47:49 +0000 |
|---|---|---|
| committer | Tom Lane | 2008-11-03 20:47:49 +0000 |
| commit | b4eae023bb2b5e9bce96cd367d70c180eefe6bf9 (patch) | |
| tree | 5fc3b8619b94897cf1b6ac884423226254c98578 /src/backend/access/gin/ginvacuum.c | |
| parent | f0dae70431ec0af676d7e6f26454145903045aba (diff) | |
Clean up the messy semantics (not to mention inefficiency) of PageGetTempPage
by splitting it into three functions with better-defined behaviors.
Zdenek Kotala
Diffstat (limited to 'src/backend/access/gin/ginvacuum.c')
| -rw-r--r-- | src/backend/access/gin/ginvacuum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/gin/ginvacuum.c b/src/backend/access/gin/ginvacuum.c index ae6459c9fac..c49926c3fd2 100644 --- a/src/backend/access/gin/ginvacuum.c +++ b/src/backend/access/gin/ginvacuum.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.24 2008/10/31 15:04:59 heikki Exp $ + * $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.25 2008/11/03 20:47:48 tgl Exp $ *------------------------------------------------------------------------- */ @@ -546,7 +546,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3 * On first difference we create temporary page in memory * and copies content in to it. */ - tmppage = GinPageGetCopyPage(origpage); + tmppage = PageGetTempPageCopy(origpage); if (newN > 0) { |
