[Bugs] [Bug 1388010] [Eventing]: 'VOLUME_REBALANCE' event messages have an incorrect volume name
bugzilla at redhat.com
bugzilla at redhat.com
Tue Oct 25 10:31:47 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1388010
--- Comment #3 from Nithya Balachandran <nbalacha at redhat.com> ---
RCA:
Gluster translators do not store the actual volume name anywhere. Each
translator appends a specific string to the volume name and stores this value
in this->name.
For dht, the suffix is "-dht" so this->name actually contains <volname>-dht.
The event framework requires the actual volume name to be sent. The rebalance
code incorrectly used strtok to parse the volume name by using "-dht" as the
delimiter. strtok () treats every char in the delim string as a delimiter. So
the parsing fails for a volume which contains 'd', 'h', or 't' in its name.
Fix:
The code was rewritten to use strstr instead.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=eiGx5Lkm5S&a=cc_unsubscribe
More information about the Bugs
mailing list