mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Harmonize heapam and tableam parameter names.
Make sure that function declarations use names that exactly match the corresponding names from function definitions. Having parameter names that are reliably consistent in this way will make it easier to reason about groups of related C functions from the same translation unit as a module. It will also make certain refactoring tasks easier. Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will do the same for other parts of the codebase. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -1763,30 +1763,30 @@ HeapTupleSatisfiesHistoricMVCC(HeapTuple htup, Snapshot snapshot,
|
||||
* if so, the indicated buffer is marked dirty.
|
||||
*/
|
||||
bool
|
||||
HeapTupleSatisfiesVisibility(HeapTuple tup, Snapshot snapshot, Buffer buffer)
|
||||
HeapTupleSatisfiesVisibility(HeapTuple htup, Snapshot snapshot, Buffer buffer)
|
||||
{
|
||||
switch (snapshot->snapshot_type)
|
||||
{
|
||||
case SNAPSHOT_MVCC:
|
||||
return HeapTupleSatisfiesMVCC(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesMVCC(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_SELF:
|
||||
return HeapTupleSatisfiesSelf(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesSelf(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_ANY:
|
||||
return HeapTupleSatisfiesAny(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesAny(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_TOAST:
|
||||
return HeapTupleSatisfiesToast(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesToast(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_DIRTY:
|
||||
return HeapTupleSatisfiesDirty(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesDirty(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_HISTORIC_MVCC:
|
||||
return HeapTupleSatisfiesHistoricMVCC(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesHistoricMVCC(htup, snapshot, buffer);
|
||||
break;
|
||||
case SNAPSHOT_NON_VACUUMABLE:
|
||||
return HeapTupleSatisfiesNonVacuumable(tup, snapshot, buffer);
|
||||
return HeapTupleSatisfiesNonVacuumable(htup, snapshot, buffer);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user