Skip to content

Commit 0c2914d

Browse files
author
Neil Conway
committed
Fix a few typos in comments in snapmgr.c, and sort header inclusions
alphabetically.
1 parent 7a97abe commit 0c2914d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/utils/time/snapmgr.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
* Portions Copyright (c) 1994, Regents of the University of California
2424
*
2525
* IDENTIFICATION
26-
* $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.2 2008/05/12 20:02:02 alvherre Exp $
26+
* $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.3 2008/07/11 00:00:29 neilc Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
3030
#include "postgres.h"
3131

32-
#include "access/xact.h"
3332
#include "access/transam.h"
33+
#include "access/xact.h"
3434
#include "storage/proc.h"
3535
#include "storage/procarray.h"
3636
#include "utils/memutils.h"
37+
#include "utils/memutils.h"
3738
#include "utils/snapmgr.h"
3839
#include "utils/tqual.h"
39-
#include "utils/memutils.h"
4040

4141

4242
/*
@@ -70,7 +70,7 @@ TransactionId RecentGlobalXmin = FirstNormalTransactionId;
7070
*
7171
* Note that we keep refcounts both here and in SnapshotData. This is because
7272
* the same snapshot may be registered more than once in a subtransaction, and
73-
* if a subxact aborts we want to be able to substract the correct amount of
73+
* if a subxact aborts we want to be able to subtract the correct amount of
7474
* counts from SnapshotData. (Another approach would be keeping one
7575
* RegdSnapshotElt each time a snapshot is registered, but that seems
7676
* unnecessary wastage.)
@@ -350,7 +350,7 @@ GetActiveSnapshot(void)
350350

351351
/*
352352
* ActiveSnapshotSet
353-
* Return whether there is at least one snapsho in the Active stack
353+
* Return whether there is at least one snapshot in the Active stack
354354
*/
355355
bool
356356
ActiveSnapshotSet(void)
@@ -628,7 +628,7 @@ AtEOXact_Snapshot(bool isCommit)
628628
}
629629

630630
/*
631-
* And reset our state. We don't need to free the memory explicitely --
631+
* And reset our state. We don't need to free the memory explicitly --
632632
* it'll go away with TopTransactionContext.
633633
*/
634634
ActiveSnapshot = NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy