mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix incorrect error code in StartupReplicationOrigin().
ERRCODE_CONFIGURATION_LIMIT_EXCEEDED was used for checksum failure, use ERRCODE_DATA_CORRUPTED instead. Reported-by: Tatsuhito Kasahara Author: Tatsuhito Kasahara Backpatch-through: 9.6, where it was introduced Discussion: https://postgr.es/m/CAP0=ZVLHtYffs8SOWcFJWrBGoRzT9QQbk+_aP+E5AHLNXiOorA@mail.gmail.com
This commit is contained in:
		@@ -784,7 +784,7 @@ StartupReplicationOrigin(void)
 | 
				
			|||||||
	FIN_CRC32C(crc);
 | 
						FIN_CRC32C(crc);
 | 
				
			||||||
	if (file_crc != crc)
 | 
						if (file_crc != crc)
 | 
				
			||||||
		ereport(PANIC,
 | 
							ereport(PANIC,
 | 
				
			||||||
				(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
 | 
									(errcode(ERRCODE_DATA_CORRUPTED),
 | 
				
			||||||
				 errmsg("replication slot checkpoint has wrong checksum %u, expected %u",
 | 
									 errmsg("replication slot checkpoint has wrong checksum %u, expected %u",
 | 
				
			||||||
						crc, file_crc)));
 | 
											crc, file_crc)));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user