From 13fd1ec05715b97f91b91f3954bd9f87e86ae33d Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 2 Jul 2009 07:08:47 +0000 Subject: 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 --- glusterfsd/src/glusterfsd.c | 4 +++- libglusterfs/src/spec.y | 2 +- 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 (); -- cgit