[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Cluster-devel] [PATCH] compare cluster name in cman daemon



On 30/05/11 09:45, Evgeniy Sokolov wrote:
On 25.05.2011 12:37, Evgeniy Sokolov wrote:
On 25.05.2011 12:05, Christine Caulfield wrote:
On 25/05/11 08:23, Evgeniy Sokolov wrote:
if length of cluster name = 16, last char of msg->clustername will not
be zero.
In this case strcmp will continue read member fence_agent from
cl_transmsg structure.



If the length of the cluster name = 16 then there is a bug somewhere
else that needs fixing ;-)

Chrissie



Design of cl_transmsg->clustername[16] is string with max length 15 + 1
char for zero. Is it correct?

Christine, can you answer the question?

Yes, that's correct.

Chrissie


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]