~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/backend/access/nbtree/nbtxlog.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 * Portions Copyright (c) 1994, Regents of the University of California
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.54 2009/01/20 18:59:37 heikki Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.55 2009/06/11 14:48:54 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
338
338
        _bt_restore_page(rpage, datapos, datalen);
339
339
 
340
340
        /*
341
 
         * On leaf level, the high key of the left page is equal to the
342
 
         * first key on the right page.
 
341
         * On leaf level, the high key of the left page is equal to the first key
 
342
         * on the right page.
343
343
         */
344
344
        if (xlrec->level == 0)
345
345
        {
936
936
                        buf = XLogReadBuffer(action->node, action->delblk, false);
937
937
                        if (BufferIsValid(buf))
938
938
                        {
939
 
                                Relation reln;
 
939
                                Relation        reln;
940
940
 
941
941
                                reln = CreateFakeRelcacheEntry(action->node);
942
942
                                if (_bt_pagedel(reln, buf, NULL, true) == 0)