Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 51623511f1
...
compare: 209f41e978
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 3 contributors
Commits on Jun 12, 2012
@alexeyklyukin alexeyklyukin Change multiple exit points in archive_func to a simple try ... excep…
…t block. Note that this changes the behavior of the archiver from ignoring the hosts that we failed to both rsync the archive file to and copy the archive file to the queue to exiting on the first failure and letting PostgreSQL retry the whole operation (for every host) later. That's probably ok, cause the former behavior lead to the loss of archive segments, in case the process failed for one of the slaves and succeeded for subsequent ones, the new code is free from this defect.
f72a36e
@alexeyklyukin alexeyklyukin Do not attempt to enqueue the wal segments archived during flush, cau…
…se there is no wal segment there.
58ea004
@soulhunter soulhunter Make cmd_standby cleanup pg_xlog dir on base backup while using strea…
…ming replication.
688c018
@commandprompt Merge pull request #14 from soulhunter/master
Make cmd_standby cleanup pg_xlog dir on base backup while using streaming replication.
209f41e
Showing with 5 additions and 0 deletions.
  1. +5 −0 cmd_standby
View
5 cmd_standby
@@ -365,6 +365,11 @@ def base_backup_func():
if debug == 'on':
print "DEBUG: " + row
row = row.rstrip('\n')
+ # Before, doing the rsync, make sure we cleanup pg_xlog for streaming replication
+ if use_streaming_replication:
+ if debug == 'on':
+ print "DEBUG: cleaning up " + row + "/pg_xlog/ directory before rsync"
+ os.system("rm -rf " + row + "/pg_xlog/*")
retval = system("%s%s/ %s/" % (copy_dirs,row,row))
if retval:
print

No commit comments for this range

Something went wrong with that request. Please try again.