summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-09 07:24:08 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-09 05:45:19 -0800
commitce334f63c7e861bda0fabd0754a2b5c48157d001 (patch)
treebb1fff573f2d4e3e722a9fb041f1286299140f41 /libglusterfs/src/graph.c
parent173638aae1236667e052493d46a90b23b14a2fad (diff)
libglusterfs: add 'graph_id' in logging
to help in distinguishing logs from previous graph and current graph, once a 'add-brick', 'remove-brick' or 'replace-brick' is done. 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 a2d03fa0b..31b908bf1 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -469,6 +469,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);