summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2014-04-28 10:59:04 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-29 04:40:21 -0700
commit9dd643dc68bfc22f7244706717d7dcb4ab090f06 (patch)
treedf0fb1473457ea781b7c9c50df250c327e956a64 /libglusterfs
parent4963ec017ef93b22e6c0b929b5fe0633f7010f45 (diff)
logging: Fix msg-id segment allocation
Change-Id: I85efa4b91c263d7374d34dd0d84e9f1032d07ab6 BUG: 1075611 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/7580 Reviewed-by: N Balachandran <nbalacha@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/glfs-message-id.h42
1 files changed, 28 insertions, 14 deletions
diff --git a/libglusterfs/src/glfs-message-id.h b/libglusterfs/src/glfs-message-id.h
index 42c16f12d91..f391fa07e35 100644
--- a/libglusterfs/src/glfs-message-id.h
+++ b/libglusterfs/src/glfs-message-id.h
@@ -27,21 +27,35 @@
/* Per module message segments allocated */
/* NOTE: For any new module add to the end the modules */
-#define GLFS_MSGID_COMP_GLUSTERFSD GLFS_MSGID_BASE
-#define GLFS_MSGID_COMP_LIBGLUSTERFS GLFS_MSGID_COMP_GLUSTERFSD + \
- GLFS_MSGID_SEGMENT
-#define GLFS_MSGID_COMP_RPC_LIB GLFS_MSGID_COMP_LIBGLUSTERFS + \
- GLFS_MSGID_SEGMENT
-#define GLFS_MSGID_COMP_RPC_TRANSPORT GLFS_MSGID_COMP_RPC_LIB + \
- GLFS_MSGID_SEGMENT
-#define GLFS_MSGID_COMP_API GLFS_MSGID_COMP_RPC_TRANSPORT + \
- GLFS_MSGID_SEGMENT
-#define GLFS_MSGID_COMP_CLI GLFS_MSGID_COMP_API + \
- GLFS_MSGID_SEGMENT
+#define GLFS_MSGID_COMP_GLUSTERFSD GLFS_MSGID_BASE
+#define GLFS_MSGID_COMP_GLUSTERFSD_END GLFS_MSGID_COMP_GLUSTERFSD + \
+ GLFS_MSGID_SEGMENT
+
+#define GLFS_MSGID_COMP_LIBGLUSTERFS GLFS_MSGID_COMP_GLUSTERFSD_END
+#define GLFS_MSGID_COMP_LIBGLUSTERFS_END GLFS_MSGID_COMP_LIBGLUSTERFS + \
+ GLFS_MSGID_SEGMENT
+
+#define GLFS_MSGID_COMP_RPC_LIB GLFS_MSGID_COMP_LIBGLUSTERFS_END
+#define GLFS_MSGID_COMP_RPC_LIB_END GLFS_MSGID_COMP_RPC_LIB + \
+ GLFS_MSGID_SEGMENT
+
+#define GLFS_MSGID_COMP_RPC_TRANSPORT GLFS_MSGID_COMP_RPC_LIB_END
+#define GLFS_MSGID_COMP_RPC_TRANSPORT_END GLFS_MSGID_COMP_RPC_TRANSPORT + \
+ GLFS_MSGID_SEGMENT
+
+#define GLFS_MSGID_COMP_API GLFS_MSGID_COMP_RPC_TRANSPORT_END
+#define GLFS_MSGID_COMP_API_END GLFS_MSGID_COMP_API + \
+ GLFS_MSGID_SEGMENT
+
+#define GLFS_MSGID_COMP_CLI GLFS_MSGID_COMP_API_END
+#define GLFS_MSGID_COMP_CLI_END GLFS_MSGID_COMP_CLI + \
+ GLFS_MSGID_SEGMENT
+
/* glusterd has a lot of messages, taking 2 segments for the same */
-#define GLFS_MSGID_GLUSTERD GLFS_MSGID_COMP_CLI + \
- GLFS_MSGID_SEGMENT + \
- GLFS_MSGID_SEGMENT
+#define GLFS_MSGID_GLUSTERD GLFS_MSGID_COMP_CLI_END
+#define GLFS_MSGID_GLUSTERD_END GLFS_MSGID_GLUSTERD + \
+ GLFS_MSGID_SEGMENT + \
+ GLFS_MSGID_SEGMENT
/* --- new segments for messages goes above this line --- */