Skip to content

Commit cfbd2af

Browse files
committed
Improve comment, per gripe from Alvaro.
1 parent e4b9e65 commit cfbd2af

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
1515
*
1616
* IDENTIFICATION
17-
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.4 2009/07/27 03:34:40 tgl Exp $
17+
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.5 2009/07/27 04:09:55 tgl Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
327327
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
328328

329329
/*
330-
* Attempt to load old statistics from the dump file.
331-
*
332-
* Note: we don't bother with locks here, because there should be no other
333-
* processes running when this is called.
330+
* Attempt to load old statistics from the dump file, if this is the
331+
* first time through and we weren't told not to.
334332
*/
335333
if (found || !pgss_save)
336334
return;
337335

336+
/*
337+
* Note: we don't bother with locks here, because there should be no other
338+
* processes running when this code is reached.
339+
*/
338340
file = AllocateFile(PGSS_DUMP_FILE, PG_BINARY_R);
339341
if (file == NULL)
340342
{

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