~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/backend/access/transam/twophase_rmgr.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * twophase_rmgr.c
 
4
 *        Two-phase-commit resource managers tables
 
5
 *
 
6
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
7
 * Portions Copyright (c) 1994, Regents of the University of California
 
8
 *
 
9
 *
 
10
 * IDENTIFICATION
 
11
 *        $PostgreSQL$
 
12
 *
 
13
 *-------------------------------------------------------------------------
 
14
 */
 
15
#include "postgres.h"
 
16
 
 
17
#include "access/twophase_rmgr.h"
 
18
#include "commands/async.h"
 
19
#include "pgstat.h"
 
20
#include "storage/lock.h"
 
21
#include "utils/flatfiles.h"
 
22
#include "utils/inval.h"
 
23
 
 
24
 
 
25
const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
 
26
{
 
27
        NULL,                                           /* END ID */
 
28
        lock_twophase_recover,          /* Lock */
 
29
        NULL,                                           /* Inval */
 
30
        NULL,                                           /* flat file update */
 
31
        NULL,                                           /* notify/listen */
 
32
        NULL                                            /* pgstat */
 
33
};
 
34
 
 
35
const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
 
36
{
 
37
        NULL,                                           /* END ID */
 
38
        lock_twophase_postcommit,       /* Lock */
 
39
        inval_twophase_postcommit,      /* Inval */
 
40
        flatfile_twophase_postcommit,           /* flat file update */
 
41
        notify_twophase_postcommit, /* notify/listen */
 
42
        pgstat_twophase_postcommit      /* pgstat */
 
43
};
 
44
 
 
45
const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID + 1] =
 
46
{
 
47
        NULL,                                           /* END ID */
 
48
        lock_twophase_postabort,        /* Lock */
 
49
        NULL,                                           /* Inval */
 
50
        NULL,                                           /* flat file update */
 
51
        NULL,                                           /* notify/listen */
 
52
        pgstat_twophase_postabort       /* pgstat */
 
53
};