wal_insert_waring_issue

Started by movead.li@highgo.caover 6 years ago1 messageshackers
Jump to latest
#1movead.li@highgo.ca
movead.li@highgo.ca

Hello hackers,

I find a small issue in XLogInsertRecord() function: it checks whether it's able
to insert a wal by XLogInsertAllowed(), when refused it reports an error "cannot
make new WAL entries during recovery".

I notice that XLogInsertAllowed() reject to insert a wal record not only sometimes
in recovery status, but also after a 'shutdown' checkpoint. So if it's better to
add an error report message "cannot make new WAL entries during shutdown" which I
make a patch attached.

Best regards,

Highgo Software (Canada/China/Pakistan)
URL : www.highgo.ca
EMAIL: mailto:movead(dot)li(at)highgo(dot)ca

Attachments:

t42141_1
wal_insert_waring_issue.patchapplication/octet-stream; name=wal_insert_waring_issue.patchDownload+6-1