Fix misc typos in comments.

This commit is contained in:
Heikki Linnakangas 2014-04-09 23:16:08 +03:00
parent b082732061
commit 5b075ae893
2 changed files with 8 additions and 8 deletions

View File

@ -136,7 +136,7 @@
/* /*
* This struct contains the current state of the snapshot building * This struct contains the current state of the snapshot building
* machinery. Besides a forward declaration in the header, it is not exposed * machinery. Besides a forward declaration in the header, it is not exposed
* to the public, so we can easily change it's contents. * to the public, so we can easily change its contents.
*/ */
struct SnapBuild struct SnapBuild
{ {
@ -607,7 +607,7 @@ SnapBuildExportSnapshot(SnapBuild *builder)
/* /*
* Reset a previously SnapBuildExportSnapshot()'ed snapshot if there is * Reset a previously SnapBuildExportSnapshot()'ed snapshot if there is
* any. Aborts the previously started transaction and resets the resource * any. Aborts the previously started transaction and resets the resource
* owner back to it's original value. * owner back to its original value.
*/ */
void void
SnapBuildClearExportedSnapshot() SnapBuildClearExportedSnapshot()
@ -1033,7 +1033,7 @@ SnapBuildCommitTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid,
SnapBuildAddCommittedTxn(builder, xid); SnapBuildAddCommittedTxn(builder, xid);
} }
/* if there's any reason to build a historic snapshot, to so now */ /* if there's any reason to build a historic snapshot, do so now */
if (forced_timetravel || top_needs_timetravel || sub_needs_timetravel) if (forced_timetravel || top_needs_timetravel || sub_needs_timetravel)
{ {
/* /*
@ -1093,7 +1093,7 @@ SnapBuildCommitTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid,
*/ */
/* /*
* Process a running xacts record, and use it's information to first build a * Process a running xacts record, and use its information to first build a
* historic snapshot and later to release resources that aren't needed * historic snapshot and later to release resources that aren't needed
* anymore. * anymore.
*/ */
@ -1404,8 +1404,8 @@ typedef struct SnapBuildOnDisk
/* /*
* Store/Load a snapshot from disk, depending on the snapshot builder's state. * Store/Load a snapshot from disk, depending on the snapshot builder's state.
* *
* Supposed to be used by external (i.e. not snapbuild.c) code that just reada * Supposed to be used by external (i.e. not snapbuild.c) code that just read
* record that's a potential location for a serialized snapshot. * a record that's a potential location for a serialized snapshot.
*/ */
void void
SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn) SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn)

View File

@ -3234,8 +3234,8 @@ ReleasePredicateLocks(bool isCommit)
* *
* If this value is changing, we don't care that much whether we get the * If this value is changing, we don't care that much whether we get the
* old or new value -- it is just used to determine how far * old or new value -- it is just used to determine how far
* GlobalSerizableXmin must advance before this transaction can be fully * GlobalSerializableXmin must advance before this transaction can be
* cleaned up. The worst that could happen is we wait for one more * fully cleaned up. The worst that could happen is we wait for one more
* transaction to complete before freeing some RAM; correctness of visible * transaction to complete before freeing some RAM; correctness of visible
* behavior is not affected. * behavior is not affected.
*/ */