File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
contrib/pg_stat_statements Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments