[tabled patch 3/5] cleanup a call to closelog()

2010-08-12 Thread Pete Zaitcev
Since we're on it, only call closelog() if openlog() was called. There is no crash if we do that, but still it's not very correct. Signed-off-by: Pete Zaitcev zait...@redhat.com --- server/server.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit

[tabled patch 4/5] Support auto replicaton port

2010-08-12 Thread Pete Zaitcev
Allow random ports for replication master to listen on. The patch is somewhat larger than expected, because before we had the MASTER file written right after locking. Now we may have it written without listening parameters, and the slaves must be ready to deal with it. Unlike the auto client