Fri Nov 4 16:13:02 PST 2005
- Previous message: [Slony1-commit] By cbbrowne: [patch] bug #1457: Lack of storage space for log-shipping
- Next message: [Slony1-commit] By wieck: Use a new table sl_nodelock to guard against concurrent slon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;
- Previous message: [Slony1-commit] By cbbrowne: [patch] bug #1457: Lack of storage space for log-shipping
- Next message: [Slony1-commit] By wieck: Use a new table sl_nodelock to guard against concurrent slon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list