summaryrefslogtreecommitdiff
path: root/src/backend/storage
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-11-28 12:35:01 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-11-28 13:01:15 -0300
commit1577b46b7c81e490cf5c8f0e90d0e5d0c09b5414 (patch)
tree6b7b73eea52d8beb905c8c4b592235cba4c41565 /src/backend/storage
parentdd7353dde82ad451bf681b37175be128995330fe (diff)
Split out rmgr rm_desc functions into their own files
This is necessary (but not sufficient) to have them compilable outside of a backend environment.
Diffstat (limited to 'src/backend/storage')
-rw-r--r--src/backend/storage/ipc/standby.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c
index 905d33148a9..9d2003867b5 100644
--- a/src/backend/storage/ipc/standby.c
+++ b/src/backend/storage/ipc/standby.c
@@ -787,54 +787,6 @@ standby_redo(XLogRecPtr lsn, XLogRecord *record)
elog(PANIC, "standby_redo: unknown op code %u", info);
}
-static void
-standby_desc_running_xacts(StringInfo buf, xl_running_xacts *xlrec)
-{
- int i;
-
- appendStringInfo(buf, " nextXid %u latestCompletedXid %u oldestRunningXid %u",
- xlrec->nextXid,
- xlrec->latestCompletedXid,
- xlrec->oldestRunningXid);
- if (xlrec->xcnt > 0)
- {
- appendStringInfo(buf, "; %d xacts:", xlrec->xcnt);
- for (i = 0; i < xlrec->xcnt; i++)
- appendStringInfo(buf, " %u", xlrec->xids[i]);
- }
-
- if (xlrec->subxid_overflow)
- appendStringInfo(buf, "; subxid ovf");
-}
-
-void
-standby_desc(StringInfo buf, uint8 xl_info, char *rec)
-{
- uint8 info = xl_info & ~XLR_INFO_MASK;
-
- if (info == XLOG_STANDBY_LOCK)
- {
- xl_standby_locks *xlrec = (xl_standby_locks *) rec;
- int i;
-
- appendStringInfo(buf, "AccessExclusive locks:");
-
- for (i = 0; i < xlrec->nlocks; i++)
- appendStringInfo(buf, " xid %u db %u rel %u",
- xlrec->locks[i].xid, xlrec->locks[i].dbOid,
- xlrec->locks[i].relOid);
- }
- else if (info == XLOG_RUNNING_XACTS)
- {
- xl_running_xacts *xlrec = (xl_running_xacts *) rec;
-
- appendStringInfo(buf, " running xacts:");
- standby_desc_running_xacts(buf, xlrec);
- }
- else
- appendStringInfo(buf, "UNKNOWN");
-}
-
/*
* Log details of the current snapshot to WAL. This allows the snapshot state
* to be reconstructed on the standby.