mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Change the suffix of auto conf temporary file from "temp" to "tmp".
Michael Paquier
This commit is contained in:
		
							parent
							
								
									7c619be623
								
							
						
					
					
						commit
						dd515d4082
					
				| @ -834,7 +834,7 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces) | |||||||
| 
 | 
 | ||||||
| 		/* skip auto conf temporary file */ | 		/* skip auto conf temporary file */ | ||||||
| 		if (strncmp(de->d_name, | 		if (strncmp(de->d_name, | ||||||
| 					PG_AUTOCONF_FILENAME ".temp", | 					PG_AUTOCONF_FILENAME ".tmp", | ||||||
| 					sizeof(PG_AUTOCONF_FILENAME) + 4) == 0) | 					sizeof(PG_AUTOCONF_FILENAME) + 4) == 0) | ||||||
| 			continue; | 			continue; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -6670,7 +6670,7 @@ AlterSystemSetConfigFile(AlterSystemStmt * altersysstmt) | |||||||
| 	canonicalize_path(AutoConfFileName); | 	canonicalize_path(AutoConfFileName); | ||||||
| 	snprintf(AutoConfTmpFileName, sizeof(AutoConfTmpFileName), "%s.%s", | 	snprintf(AutoConfTmpFileName, sizeof(AutoConfTmpFileName), "%s.%s", | ||||||
| 			 AutoConfFileName, | 			 AutoConfFileName, | ||||||
| 			 "temp"); | 			 "tmp"); | ||||||
| 
 | 
 | ||||||
| 	/*
 | 	/*
 | ||||||
| 	 * One backend is allowed to operate on file PG_AUTOCONF_FILENAME, to | 	 * One backend is allowed to operate on file PG_AUTOCONF_FILENAME, to | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user