Change the suffix of auto conf temporary file from "temp" to "tmp".

Michael Paquier
pull/6/head
Fujii Masao 12 years ago
parent 7c619be623
commit dd515d4082
  1. 2
      src/backend/replication/basebackup.c
  2. 2
      src/backend/utils/misc/guc.c

@ -834,7 +834,7 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces)
/* skip auto conf temporary file */
if (strncmp(de->d_name,
PG_AUTOCONF_FILENAME ".temp",
PG_AUTOCONF_FILENAME ".tmp",
sizeof(PG_AUTOCONF_FILENAME) + 4) == 0)
continue;

@ -6670,7 +6670,7 @@ AlterSystemSetConfigFile(AlterSystemStmt * altersysstmt)
canonicalize_path(AutoConfFileName);
snprintf(AutoConfTmpFileName, sizeof(AutoConfTmpFileName), "%s.%s",
AutoConfFileName,
"temp");
"tmp");
/*
* One backend is allowed to operate on file PG_AUTOCONF_FILENAME, to

Loading…
Cancel
Save