mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix incorrect ordering of smgr cleanup relative to buffer pin cleanup
during transaction abort. Add a regression test case to catch related mistakes in future. Alvaro Herrera and Tom Lane.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/smgr/smgr.c,v 1.81 2004/08/30 02:54:39 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/smgr/smgr.c,v 1.82 2004/09/06 17:56:16 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -784,7 +784,7 @@ smgrcommit(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* smgrabort() -- Abort changes made during the current transaction.
|
||||
* smgrabort() -- Clean up after transaction abort.
|
||||
*/
|
||||
void
|
||||
smgrabort(void)
|
||||
|
Reference in New Issue
Block a user