mirror of https://github.com/apache/cassandra
ReadCommandVerbHandler validateTransientStatus class cast exception
Patch by Ariel Weisberg; Reviewed by Alex Petrov for CASSANDRA-14959
This commit is contained in:
parent
ef1817a75c
commit
f049488917
|
|
@ -81,7 +81,7 @@ public class ReadCommandVerbHandler implements IVerbHandler<ReadCommand>
|
||||||
ReadCommand command = message.payload;
|
ReadCommand command = message.payload;
|
||||||
Token token;
|
Token token;
|
||||||
|
|
||||||
if (command.isLimitedToOnePartition())
|
if (command instanceof SinglePartitionReadCommand)
|
||||||
token = ((SinglePartitionReadCommand) command).partitionKey().getToken();
|
token = ((SinglePartitionReadCommand) command).partitionKey().getToken();
|
||||||
else
|
else
|
||||||
token = ((PartitionRangeReadCommand) command).dataRange().keyRange().right.getToken();
|
token = ((PartitionRangeReadCommand) command).dataRange().keyRange().right.getToken();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue