mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix inconsistencies and typos in the tree, take 10
This addresses some issues with unnecessary code comments, fixes various typos in docs and comments, and removes some orphaned structures and definitions. Author: Alexander Lakhin Discussion: https://postgr.es/m/9aabc775-5494-b372-8bcb-4dfc0bd37c68@gmail.com
This commit is contained in:
@@ -1075,8 +1075,8 @@ LWLockDequeueSelf(LWLock *lock)
|
||||
*/
|
||||
|
||||
/*
|
||||
* Reset releaseOk if somebody woke us before we removed ourselves -
|
||||
* they'll have set it to false.
|
||||
* Reset RELEASE_OK flag if somebody woke us before we removed
|
||||
* ourselves - they'll have set it to false.
|
||||
*/
|
||||
pg_atomic_fetch_or_u32(&lock->state, LW_FLAG_RELEASE_OK);
|
||||
|
||||
|
@@ -849,7 +849,7 @@ OldSerXidInit(void)
|
||||
/*
|
||||
* Record a committed read write serializable xid and the minimum
|
||||
* commitSeqNo of any transactions to which this xid had a rw-conflict out.
|
||||
* An invalid seqNo means that there were no conflicts out from xid.
|
||||
* An invalid commitSeqNo means that there were no conflicts out from xid.
|
||||
*/
|
||||
static void
|
||||
OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
|
||||
@@ -1685,7 +1685,7 @@ SetSerializableTransactionSnapshot(Snapshot snapshot,
|
||||
/*
|
||||
* Guts of GetSerializableTransactionSnapshot
|
||||
*
|
||||
* If sourcexid is valid, this is actually an import operation and we should
|
||||
* If sourcevxid is valid, this is actually an import operation and we should
|
||||
* skip calling GetSnapshotData, because the snapshot contents are already
|
||||
* loaded up. HOWEVER: to avoid race conditions, we must check that the
|
||||
* source xact is still running after we acquire SerializableXactHashLock.
|
||||
|
Reference in New Issue
Block a user