summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-18 00:38:13 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-18 20:36:30 -0700
commit131d82cacd4600654d3e931287d2556f50bd9db5 (patch)
treed2fa03337ccd6ec1149989739592dadf8fa57938 /libglusterfs/src/graph.c
parent3d912aa905105098db1eea1e4c3e9c42aa0c7da7 (diff)
libglusterfs: added graph id in logging
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r--libglusterfs/src/graph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
index 5538df04d6d..990e96e2fd8 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -475,6 +475,8 @@ glusterfs_graph_prepare (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)
fill_uuid (graph->graph_uuid, 128);
+ graph->id = ctx->graph_id++;
+
/* XXX: --xlator-option additions */
gf_add_cmdline_options (graph, &ctx->cmd_args);