mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Add C comment about why older compilers complain about basebackup.c's
longjump.
This commit is contained in:
		@@ -217,6 +217,12 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
 | 
			
		||||
				ptr.xlogid = logid;
 | 
			
		||||
				ptr.xrecoff = logseg * XLogSegSize + TAR_SEND_SIZE * i;
 | 
			
		||||
 | 
			
		||||
				/*
 | 
			
		||||
				 *	Some old compilers, e.g. 2.95.3/x86, think that passing
 | 
			
		||||
				 *	a struct in the same function as a longjump might clobber
 | 
			
		||||
				 *	a variable.  bjm 2011-02-04
 | 
			
		||||
				 *	http://lists.apple.com/archives/xcode-users/2003/Dec//msg00051.html
 | 
			
		||||
				 */
 | 
			
		||||
				XLogRead(buf, ptr, TAR_SEND_SIZE);
 | 
			
		||||
				if (pq_putmessage('d', buf, TAR_SEND_SIZE))
 | 
			
		||||
					ereport(ERROR,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user