CVS User Account cvsuser
Fri Nov 4 16:13:02 PST 2005
Log Message:
-----------
[patch] bug #1457: Lack of storage space for log-shipping causes replication data loss

- Add checks of return codes from file operations; cause log shipping to
report failure if results indicate failure of writes

Jacek Konieczny <jajcus at jajcus.net>

Tags:
----
REL_1_1_STABLE

Modified Files:
--------------
    slony1-engine/src/slon:
        remote_worker.c (r1.86.2.7 -> r1.86.2.8)

-------------- next part --------------
Index: remote_worker.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/remote_worker.c,v
retrieving revision 1.86.2.7
retrieving revision 1.86.2.8
diff -Lsrc/slon/remote_worker.c -Lsrc/slon/remote_worker.c -u -w -r1.86.2.7 -r1.86.2.8
--- src/slon/remote_worker.c
+++ src/slon/remote_worker.c
@@ -4884,7 +4884,12 @@
 			     "commit;\n"
 			     "vacuum analyze %s.sl_setsync_offline;\n", 
 			     rtcfg_namespace);
+		if ( rc < 0 ) 
+			return -1;
 		rc = fclose(archive_fp);
+		archive_fp = NULL;
+		if ( rc < 0 ) 
+			return -1;
 		rc = rename(archive_tmp, archive_name);
 	}
 	return rc;


More information about the Slony1-commit mailing list