Fri Nov 4 16:12:12 PST 2005
- Previous message: [Slony1-commit] By cbbrowne: slony1_dump.sh - fix quoting of a string of '\\\\\\'...
- Next message: [Slony1-commit] By cbbrowne: [patch] bug #1457: Lack of storage space for log-shipping
- 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> Modified Files: -------------- slony1-engine/src/slon: remote_worker.c (r1.94 -> r1.95) -------------- next part -------------- Index: remote_worker.c =================================================================== RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/remote_worker.c,v retrieving revision 1.94 retrieving revision 1.95 diff -Lsrc/slon/remote_worker.c -Lsrc/slon/remote_worker.c -u -w -r1.94 -r1.95 --- src/slon/remote_worker.c +++ src/slon/remote_worker.c @@ -5087,7 +5087,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: slony1_dump.sh - fix quoting of a string of '\\\\\\'...
- Next message: [Slony1-commit] By cbbrowne: [patch] bug #1457: Lack of storage space for log-shipping
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list