]> granicus.if.org Git - postgresql/commit
Rearrange XLogFileInit so that control-file spinlock is not held while filling
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2001 20:54:13 +0000 (20:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Mar 2001 20:54:13 +0000 (20:54 +0000)
commit5a38af7fd8346cd9209c4a66754a4e653d88db57
treeac44532f579b5da45f588b761eeb6309c91fa585
parent5dc0e67bd5ca723886887298ecfcb2a91d86ba4c
Rearrange XLogFileInit so that control-file spinlock is not held while filling
the new log file with zeroes, only while renaming it into place.  This should
prevent problems with 'stuck spinlock' errors under heavy load.
src/backend/access/transam/xlog.c