summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/nsr-server/src/etcd-sim.c
diff options
context:
space:
mode:
authorAnuradha <atalur@redhat.com>2014-01-20 23:50:40 +0530
committerAnuradha <atalur@redhat.com>2014-01-21 22:55:05 +0530
commit89a9fcdf7ff2ab00f209b8510ee613683c4f9188 (patch)
tree94cacc9d0b10f4742c0bd9ce483ef344bc5e9ad6 /xlators/cluster/nsr-server/src/etcd-sim.c
parent0225d7bc712609232d592d48116ec771cd97c2cf (diff)
nsr : Fix "special" recon logging functions.
Combining two patches together. http://review.gluster.org/#/c/6538/4, author : Jeff Darcy and http://review.gluster.org/#/c/6748/2, author : Anuradha Talur. (1) Put logs into /var/log instead of /tmp. (2) Added debug-level check. (3) Added function/line information. (4) Fixed many instances of missing symbol GF_LOG_ERR. Removing spurious newlines will have to wait until a subsequent patch. Keeping this one up to date is tedious enough. Changed the logging directory of reconciliation logs to /var/log/nsr-logs. Change-Id: I8ffd901537d77329eddbd17b380c1611607927d6 Credits: Jeff Darcy <jdarcy@redhat.com> Signed-off-by: Anuradha <atalur@redhat.com>
Diffstat (limited to 'xlators/cluster/nsr-server/src/etcd-sim.c')
-rw-r--r--xlators/cluster/nsr-server/src/etcd-sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/nsr-server/src/etcd-sim.c b/xlators/cluster/nsr-server/src/etcd-sim.c
index 6ce3de689..c2b8fb863 100644
--- a/xlators/cluster/nsr-server/src/etcd-sim.c
+++ b/xlators/cluster/nsr-server/src/etcd-sim.c
@@ -205,7 +205,7 @@ etcd_open_str (char *server_names)
sim = calloc(1, sizeof(etcd_sim_t));
sprintf(name, "/tmp/%s", server_names);
- sim->fd = open(name, O_RDWR | O_CREAT);
+ sim->fd = open(name, O_RDWR | O_CREAT, 0777);
if (sim->fd == -1)
return NULL;
sim->stream = fopen(name, "r+");