]> granicus.if.org Git - postgresql/commitdiff
Improve comment, per gripe from Alvaro.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Jul 2009 04:10:01 +0000 (04:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Jul 2009 04:10:01 +0000 (04:10 +0000)
contrib/pg_stat_statements/pg_stat_statements.c

index 91e773848a7077615752f2b108ef05b89d3c7cad..44ba9e766b899061564b9bdd68ef7ee6cd5d6751 100644 (file)
@@ -14,7 +14,7 @@
  * Copyright (c) 2008-2009, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.3.2.1 2009/07/27 03:34:46 tgl Exp $
+ *       $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.3.2.2 2009/07/27 04:10:01 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
                on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
 
        /*
-        * Attempt to load old statistics from the dump file.
-        *
-        * Note: we don't bother with locks here, because there should be no other
-        * processes running when this is called.
+        * Attempt to load old statistics from the dump file, if this is the
+        * first time through and we weren't told not to.
         */
        if (found || !pgss_save)
                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);
        if (file == NULL)
        {