mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Use INT64_FORMAT instead of %ld for int64.
Commit 0011c0091e introduced this
mistake.
Patch by me.  Reported by Andres Freund, who also reviewed the
patch.
			
			
This commit is contained in:
		@@ -2692,8 +2692,9 @@ beginmerge(Tuplesortstate *state, bool finalMergeBatch)
 | 
				
			|||||||
							   state->mergetuples[srcTape] + 1023) / 1024;
 | 
												   state->mergetuples[srcTape] + 1023) / 1024;
 | 
				
			||||||
				usedSlots = slotsPerTape - state->mergeavailslots[srcTape];
 | 
									usedSlots = slotsPerTape - state->mergeavailslots[srcTape];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				elog(LOG, "tape %d initially used %ld KB of %ld KB batch "
 | 
									elog(LOG, "tape %d initially used " INT64_FORMAT " KB of "
 | 
				
			||||||
					 "(%2.3f) and %d out of %d slots (%2.3f)", srcTape,
 | 
										 INT64_FORMAT " KB batch (%2.3f) and %d out of %d slots "
 | 
				
			||||||
 | 
										 "(%2.3f)", srcTape,
 | 
				
			||||||
					 usedSpaceKB, perTapeKB,
 | 
										 usedSpaceKB, perTapeKB,
 | 
				
			||||||
					 (double) usedSpaceKB / (double) perTapeKB,
 | 
										 (double) usedSpaceKB / (double) perTapeKB,
 | 
				
			||||||
					 usedSlots, slotsPerTape,
 | 
										 usedSlots, slotsPerTape,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user