mgmt/glusterd: let each brick write the valgrind o/p to different file
Till now all the brick processes were writing the valgrind information to the same log file. Change-Id: I0251c943935e2901b729c71f21d0677edb9f6867 BUG: 922877 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/5394 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
2ebbabbe45
commit
62ba019c5c
@ -1214,6 +1214,11 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo,
|
||||
if (!port)
|
||||
port = pmap_registry_alloc (THIS);
|
||||
|
||||
/* Build the exp_path, before starting the glusterfsd even in
|
||||
valgrind mode. Otherwise all the glusterfsd processes start
|
||||
writing the valgrind log to the same file.
|
||||
*/
|
||||
GLUSTERD_REMOVE_SLASH_FROM_PATH (brickinfo->path, exp_path);
|
||||
runinit (&runner);
|
||||
|
||||
if (priv->valgrind) {
|
||||
@ -1236,7 +1241,6 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo,
|
||||
runner_argprintf (&runner, "--log-file=%s", valgrind_logfile);
|
||||
}
|
||||
|
||||
GLUSTERD_REMOVE_SLASH_FROM_PATH (brickinfo->path, exp_path);
|
||||
snprintf (volfile, PATH_MAX, "%s.%s.%s", volinfo->volname,
|
||||
brickinfo->hostname, exp_path);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user