[ClusterLabs] Antw: RRP works "in totally different way then most of people expects"
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Mon Jun 8 11:04:48 UTC 2015
Hi!
Maybe we want "O_DSYNC" also:
--
diff --git a/exec/main.c b/exec/main.c
index 6c9e1b6..9be33e4 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -1043,9 +1043,9 @@ static void corosync_ring_id_store (
snprintf (filename, sizeof(filename), "%s/ringid_%s",
get_run_dir(), totemip_print (addr));
- fd = open (filename, O_WRONLY, 0);
+ fd = open (filename, O_WRONLY|O_DSYNC, 0);
if (fd == -1) {
- fd = open (filename, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR);
+ fd = open (filename, O_CREAT|O_RDWR|O_DSYNC, S_IRUSR|S_IWUSR);
}
if (fd == -1) {
LOGSYS_PERROR(errno, LOGSYS_LEVEL_ERROR,
--
Ulrich
More information about the Users
mailing list