aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-06-14 10:46:48 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-06-14 10:46:48 +0300
commit0ef0b6784c7d7258cae314cb46558873edaf9c0a (patch)
treeb79ffdee4813ef5db62d4aedebe8d5529270eacc /contrib
parentf3fdd257a430ff581090740570af9f266bb893e3 (diff)
downloadpostgresql-0ef0b6784c7d7258cae314cb46558873edaf9c0a.tar.gz
postgresql-0ef0b6784c7d7258cae314cb46558873edaf9c0a.zip
Change the signature of rm_desc so that it's passed a XLogRecord.
Just feels more natural, and is more consistent with rm_redo.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pg_xlogdump/pg_xlogdump.c2
-rw-r--r--contrib/pg_xlogdump/rmgrdesc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pg_xlogdump/pg_xlogdump.c b/contrib/pg_xlogdump/pg_xlogdump.c
index 824b8c393c9..c555786401f 100644
--- a/contrib/pg_xlogdump/pg_xlogdump.c
+++ b/contrib/pg_xlogdump/pg_xlogdump.c
@@ -351,7 +351,7 @@ XLogDumpDisplayRecord(XLogDumpConfig *config, XLogRecPtr ReadRecPtr, XLogRecord
!!(XLR_BKP_BLOCK(3) & record->xl_info));
/* the desc routine will printf the description directly to stdout */
- desc->rm_desc(NULL, record->xl_info, XLogRecGetData(record));
+ desc->rm_desc(NULL, record);
putchar('\n');
diff --git a/contrib/pg_xlogdump/rmgrdesc.h b/contrib/pg_xlogdump/rmgrdesc.h
index edf82577514..d9641181401 100644
--- a/contrib/pg_xlogdump/rmgrdesc.h
+++ b/contrib/pg_xlogdump/rmgrdesc.h
@@ -13,7 +13,7 @@
typedef struct RmgrDescData
{
const char *rm_name;
- void (*rm_desc) (StringInfo buf, uint8 xl_info, char *rec);
+ void (*rm_desc) (StringInfo buf, XLogRecord *record);
} RmgrDescData;
extern const RmgrDescData RmgrDescTable[];