mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Correct statement to actually be the intended assert statement.
e3f4cfc7 introduced a LWLockHeldByMe() call, without the corresponding
Assert() surrounding it.
Spotted by Coverity.
Backpatch: 9.1+, like the previous commit
			
			
This commit is contained in:
		@@ -2565,7 +2565,7 @@ FlushOneBuffer(Buffer buffer)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	bufHdr = &BufferDescriptors[buffer - 1];
 | 
						bufHdr = &BufferDescriptors[buffer - 1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	LWLockHeldByMe(bufHdr->content_lock);
 | 
						Assert(LWLockHeldByMe(bufHdr->content_lock));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	FlushBuffer(bufHdr, NULL);
 | 
						FlushBuffer(bufHdr, NULL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user