Print versions for gossip states in gossipinfo.

Patch by brandonwilliams, reviewed by Stefania for CASSANDRA-10330
This commit is contained in:
Brandon Williams 2015-09-16 09:43:51 -05:00
parent 257cdaa08d
commit ae4cd6926b
1 changed files with 9 additions and 1 deletions

View File

@ -148,7 +148,15 @@ public class FailureDetector implements IFailureDetector, FailureDetectorMBean
{
if (state.getKey() == ApplicationState.TOKENS)
continue;
sb.append(" ").append(state.getKey()).append(":").append(state.getValue().value).append("\n");
sb.append(" ").append(state.getKey()).append(":").append(state.getValue().version).append(":").append(state.getValue().value).append("\n");
}
if (endpointState.applicationState.containsKey(ApplicationState.TOKENS))
{
sb.append(" TOKENS:").append(endpointState.applicationState.get(ApplicationState.TOKENS).version).append(":<hidden>\n");
}
else
{
sb.append(" TOKENS: not present");
}
}