From 708fa811f7e68cdc09e85de64942be2b4c2bc500 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 28 Sep 2011 20:00:10 -0400 Subject: [PATCH] Remove some debugging code. --- src/backend/storage/ipc/snaparray.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/backend/storage/ipc/snaparray.c b/src/backend/storage/ipc/snaparray.c index 582d2b7e6d..a5c8198225 100644 --- a/src/backend/storage/ipc/snaparray.c +++ b/src/backend/storage/ipc/snaparray.c @@ -452,7 +452,6 @@ SnapArrayRemoveRunningXids(TransactionId xid, int nchildren, certainly_removed_xids = num_removed_xids - high; } - elog(LOG, "[snaparray] xmax=%u, new_xmax=%u, num_running_xids=%u, xids_added=%u, certainly_removed_xids=%u", xmax, new_xmax, num_running_xids, xids_added, certainly_removed_xids); /* * Allocate space for new snapshot. @@ -1086,25 +1085,6 @@ SnapArrayUpdateCache(bool have_lock) need_sort = true; } - { - uint32 k; - StringInfoData buf; - initStringInfo(&buf); - appendStringInfo(&buf, - "xmax: %lu, highest_removed_subxid: %lu, %u xids: [", - (unsigned long) xmax, (unsigned long) highest_removed_subxid, - (unsigned) num_running_xids); - for (k = 0; k < num_running_xids; ++k) - appendStringInfo(&buf, k ? " %lu" : "%lu", - (unsigned long) running_xids[k]); - appendStringInfo(&buf, "]; %u removed xids: [", num_removed_xids); - for (k = 0; k < num_removed_xids; ++k) - appendStringInfo(&buf, k ? " %lu" : "%lu", - (unsigned long) removed_xids[k]); - appendStringInfo(&buf, "] new_xmax=%lu", (unsigned long) new_xmax); - elog(LOG, "[snaparray] %s", buf.data); - } - /* * Sort the removed XIDs (unless they are already in order). * -- 2.39.5