* Lock a tuple in the specified mode. * * Input parameters: * relation: relation containing tuple (caller must hold suitable lock) * tid: TID of tuple to lock * snapshot: snapshot to use for visibility determinations * cid: current command ID (used for visibility test, and stored into * tuple's cmax if lock is successful) * mode: lock mode desired * wait_policy: what to do if tuple lock
| 1778 | * comments for struct TM_FailureData for additional info. |
| 1779 | */ |
| 1780 | static inline TM_Result |
| 1781 | table_tuple_lock(Relation rel, ItemPointer tid, Snapshot snapshot, |
| 1782 | TupleTableSlot *slot, CommandId cid, LockTupleMode mode, |
| 1783 | LockWaitPolicy wait_policy, uint8 flags, |
| 1784 | TM_FailureData *tmfd) |
| 1785 | { |
| 1786 | return rel->rd_tableam->tuple_lock(rel, tid, snapshot, slot, |
| 1787 | cid, mode, wait_policy, |
| 1788 | flags, tmfd); |
| 1789 | } |
| 1790 | |
| 1791 | /* |
| 1792 | * Perform operations necessary to complete insertions made via |
no outgoing calls
no test coverage detected