Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not attempt to enqueue the wal segments archived during flush, cau…

…se there is no wal segment there.
  • Loading branch information...
commit 58ea004c71c100ed2a722b67e07ec4032e54b980 1 parent f72a36e
@alexeyklyukin alexeyklyukin authored soulhunter committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmd_archiver
View
4 cmd_archiver
@@ -325,6 +325,10 @@ def archive_func():
print "NOTICE: Using: " + rsync_transfer
retval = system("%s" % (rsync_transfer))
if retval:
+ if flush:
+ # don't try to enqueue the segment archived if this is a flush
+ print "FATAL: unable to flush pg_xlog to host %s" % (str(host),)
+ raise ArchiveFailure
print "NOTICE: no luck shipping archive"
queue_dir = l_archivedir + "/" + str(host)
queue_transfer = """%s %s %s""" % (str(rsync_bin), str(archivefile), str(queue_dir))
Please sign in to comment.
Something went wrong with that request. Please try again.