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

Michael Paquier
This commit is contained in:
Fujii Masao 2014-01-27 12:39:11 +09:00
parent 7c619be623
commit dd515d4082
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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