summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-07-02 07:08:47 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-02 10:14:48 -0700
commit13fd1ec05715b97f91b91f3954bd9f87e86ae33d (patch)
treef0f1122fda27a3eb91b223fc609e51caeac43a62
parent1a79ea17f77a99471205e8ddb10a94dce80eb7b2 (diff)
Print volume file after printing other details.
This makes the log format compatible with earlier versions. Fixes bug #105. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
-rw-r--r--glusterfsd/src/glusterfsd.c4
-rw-r--r--libglusterfs/src/spec.y2
2 files changed, 4 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index f0054189b..1864424aa 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1198,7 +1198,9 @@ main (int argc, char *argv[])
_gf_dump_details (argc, argv);
}
-
+
+ gf_log_volume_file (ctx->specfp);
+
gf_log ("glusterfs", GF_LOG_DEBUG,
"running in pid %d", getpid ());
diff --git a/libglusterfs/src/spec.y b/libglusterfs/src/spec.y
index b4cd9c96a..f1cffe5d9 100644
--- a/libglusterfs/src/spec.y
+++ b/libglusterfs/src/spec.y
@@ -583,7 +583,7 @@ file_to_xlator_tree (glusterfs_ctx_t *ctx,
FREE (buffer);
return NULL;
}
- gf_log_volume_file (tmp_file);
+
gctx = ctx;
yyin = tmp_file;
ret = yyparse ();