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.
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.

cjcjameson/gpdb,cjcjameson/gpdb,randomtask1155/gpdb,atris/gpdb,ahachete/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,chrishajas/gpdb,0x0FFF/gpdb,xinzweb/gpdb,Quikling/gpdb,chrishajas/gpdb,Chibin/gpdb,oberstet/postgres-xl,rvs/gpdb,lisakowen/gpdb,edespino/gpdb,royc1/gpdb,yazun/postgres-xl,tangp3/gpdb,yuanzhao/gpdb,edespino/gpdb,lintzc/gpdb,janebeckman/gpdb,xinzweb/gpdb,lisakowen/gpdb,royc1/gpdb,xuegang/gpdb,xuegang/gpdb,tangp3/gpdb,rvs/gpdb,0x0FFF/gpdb,tangp3/gpdb,yazun/postgres-xl,rvs/gpdb,rvs/gpdb,greenplum-db/gpdb,rubikloud/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,50wu/gpdb,zaksoup/gpdb,0x0FFF/gpdb,adam8157/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,rvs/gpdb,Chibin/gpdb,adam8157/gpdb,lintzc/gpdb,ashwinstar/gpdb,chrishajas/gpdb,rubikloud/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,jmcatamney/gpdb,rvs/gpdb,atris/gpdb,oberstet/postgres-xl,atris/gpdb,jmcatamney/gpdb,Quikling/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,kaknikhil/gpdb,rubikloud/gpdb,ahachete/gpdb,zaksoup/gpdb,lintzc/gpdb,postmind-net/postgres-xl,royc1/gpdb,kmjungersen/PostgresXL,yuanzhao/gpdb,zaksoup/gpdb,yuanzhao/gpdb,snaga/postgres-xl,rubikloud/gpdb,cjcjameson/gpdb,atris/gpdb,lintzc/gpdb,janebeckman/gpdb,foyzur/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,yazun/postgres-xl,yuanzhao/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,techdragon/Postgres-XL,lpetrov-pivotal/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,zaksoup/gpdb,ovr/postgres-xl,cjcjameson/gpdb,yuanzhao/gpdb,Quikling/gpdb,rvs/gpdb,Quikling/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,0x0FFF/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,snaga/postgres-xl,xuegang/gpdb,tpostgres-projects/tPostgres,kaknikhil/gpdb,foyzur/gpdb,zeroae/postgres-xl,CraigHarris/gpdb,CraigHarris/gpdb,Quikling/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,tangp3/gpdb,royc1/gpdb,xinzweb/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,Quikling/gpdb,postmind-net/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,tangp3/gpdb,adam8157/gpdb,edespino/gpdb,ovr/postgres-xl,xinzweb/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,oberstet/postgres-xl,rvs/gpdb,randomtask1155/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,snaga/postgres-xl,jmcatamney/gpdb,cjcjameson/gpdb,atris/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,jmcatamney/gpdb,royc1/gpdb,janebeckman/gpdb,foyzur/gpdb,adam8157/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,lisakowen/gpdb,ovr/postgres-xl,edespino/gpdb,lisakowen/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,Chibin/gpdb,zeroae/postgres-xl,tangp3/gpdb,Chibin/gpdb,Chibin/gpdb,janebeckman/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,janebeckman/gpdb,kmjungersen/PostgresXL,edespino/gpdb,lisakowen/gpdb,yazun/postgres-xl,50wu/gpdb,xuegang/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,chrishajas/gpdb,adam8157/gpdb,adam8157/gpdb,atris/gpdb,Quikling/gpdb,zaksoup/gpdb,adam8157/gpdb,zaksoup/gpdb,lintzc/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,zeroae/postgres-xl,chrishajas/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,yuanzhao/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,lpetrov-pivotal/gpdb,lisakowen/gpdb,ahachete/gpdb,cjcjameson/gpdb,rvs/gpdb,oberstet/postgres-xl,xuegang/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,edespino/gpdb,ovr/postgres-xl,Chibin/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,Quikling/gpdb,xinzweb/gpdb,greenplum-db/gpdb,zaksoup/gpdb,royc1/gpdb,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,zeroae/postgres-xl,foyzur/gpdb,royc1/gpdb,xinzweb/gpdb,lintzc/gpdb,rvs/gpdb,yuanzhao/gpdb,foyzur/gpdb,Chibin/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,Postgres-XL/Postgres-XL,atris/gpdb,zaksoup/gpdb,Quikling/gpdb,lpetrov-pivotal/gpdb,arcivanov/postgres-xl,Quikling/gpdb,royc1/gpdb,tpostgres-projects/tPostgres,yazun/postgres-xl,tangp3/gpdb,chrishajas/gpdb,randomtask1155/gpdb,lintzc/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,tangp3/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,edespino/gpdb,Chibin/gpdb,CraigHarris/gpdb,50wu/gpdb,randomtask1155/gpdb,rubikloud/gpdb,50wu/gpdb,Chibin/gpdb,rubikloud/gpdb,foyzur/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,postmind-net/postgres-xl,50wu/gpdb,greenplum-db/gpdb,50wu/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,oberstet/postgres-xl,chrishajas/gpdb,ahachete/gpdb,edespino/gpdb,kaknikhil/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,ahachete/gpdb,ahachete/gpdb,edespino/gpdb,CraigHarris/gpdb,janebeckman/gpdb,ahachete/gpdb,pavanvd/postgres-xl,chrishajas/gpdb,ahachete/gpdb,lisakowen/gpdb,xuegang/gpdb,kaknikhil/gpdb,foyzur/gpdb,ashwinstar/gpdb,rubikloud/gpdb,foyzur/gpdb,atris/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL