Skip to content
Snippets Groups Projects
Commit cfbd2af9 authored by Tom Lane's avatar Tom Lane
Browse files

Improve comment, per gripe from Alvaro.

parent e4b9e653
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* Copyright (c) 2008-2009, PostgreSQL Global Development Group * Copyright (c) 2008-2009, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.4 2009/07/27 03:34:40 tgl Exp $ * $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.5 2009/07/27 04:09:55 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -327,14 +327,16 @@ pgss_shmem_startup(void) ...@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0); on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
/* /*
* Attempt to load old statistics from the dump file. * Attempt to load old statistics from the dump file, if this is the
* * first time through and we weren't told not to.
* Note: we don't bother with locks here, because there should be no other
* processes running when this is called.
*/ */
if (found || !pgss_save) if (found || !pgss_save)
return; return;
/*
* Note: we don't bother with locks here, because there should be no other
* processes running when this code is reached.
*/
file = AllocateFile(PGSS_DUMP_FILE, PG_BINARY_R); file = AllocateFile(PGSS_DUMP_FILE, PG_BINARY_R);
if (file == NULL) if (file == NULL)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment