diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-03-26 11:03:06 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-03-26 11:03:06 -0400 |
commit | 7386089d23c748af142ec7e3668fa0dd164eaf99 (patch) | |
tree | 6f4fc28184d8b3ffd6e913a88cacc97f244a6b1c /src/include/access/heapam.h | |
parent | e8476f46fc847060250c92ec9b310559293087fc (diff) | |
download | postgresql-7386089d23c748af142ec7e3668fa0dd164eaf99.tar.gz postgresql-7386089d23c748af142ec7e3668fa0dd164eaf99.zip |
Code cleanup for heap_freeze_tuple.
It used to be case that lazy vacuum could call this function with only
a shared lock on the buffer, but neither lazy vacuum nor any other
code path does that any more. Simplify the code accordingly and clean
up some related, obsolete comments.
Diffstat (limited to 'src/include/access/heapam.h')
-rw-r--r-- | src/include/access/heapam.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index fa38803b249..9d5da7fb3a5 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -111,8 +111,7 @@ extern HTSU_Result heap_lock_tuple(Relation relation, HeapTuple tuple, TransactionId *update_xmax, CommandId cid, LockTupleMode mode, bool nowait); extern void heap_inplace_update(Relation relation, HeapTuple tuple); -extern bool heap_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid, - Buffer buf); +extern bool heap_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid); extern bool heap_tuple_needs_freeze(HeapTupleHeader tuple, TransactionId cutoff_xid, Buffer buf); |