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.
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).
*