summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/glusterfs.h
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/glusterfs.h
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/glusterfs.h')
-rw-r--r--libglusterfs/src/glusterfs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index af03bd36b4f..f2fc64def17 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -306,6 +306,7 @@ struct _glusterfs_graph {
void *first;
void *top; /* selected by -n */
int xl_count;
+ int id; /* Used in logging */
uint32_t volfile_checksum;
};
typedef struct _glusterfs_graph glusterfs_graph_t;
@@ -332,7 +333,9 @@ struct _glusterfs_ctx {
pthread_t sigwaiter;
struct mem_pool *stub_mem_pool;
unsigned char cleanup_started;
-
+ int graph_id; /* Incremented per graph, value should
+ indicate how many times the graph has
+ got changed */
};
typedef struct _glusterfs_ctx glusterfs_ctx_t;