MCPcopy Create free account
hub / github.com/apache/cloudberry / TestForOldSnapshot_impl

Function TestForOldSnapshot_impl

src/backend/storage/buffer/bufmgr.c:5145–5153  ·  view source on GitHub ↗

* Implement slower/larger portions of TestForOldSnapshot * * Smaller/faster portions are put inline, but the entire set of logic is too * big for that. */

Source from the content-addressed store, hash-verified

5143 * big for that.
5144 */
5145void
5146TestForOldSnapshot_impl(Snapshot snapshot, Relation relation)
5147{
5148 if (RelationAllowsEarlyPruning(relation)
5149 && (snapshot)->whenTaken < GetOldSnapshotThresholdTimestamp())
5150 ereport(ERROR,
5151 (errcode(ERRCODE_SNAPSHOT_TOO_OLD),
5152 errmsg("snapshot too old")));
5153}
5154
5155/* This is used by PageGetLSN(). */
5156#ifdef USE_ASSERT_CHECKING

Callers 1

TestForOldSnapshotFunction · 0.85

Calls 3

errcodeFunction · 0.50
errmsgFunction · 0.50

Tested by

no test coverage detected