Permalink
Browse files

fix limit bug

  • Loading branch information...
1 parent 04b2caf commit 09b9f38268104f901578ba93c6b5e2ddaa4b7d07 @tjake committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lucandra/dht/RandomPartitioner.java
@@ -114,7 +114,7 @@ private ByteBuffer extractSolandraToken(ByteBuffer key)
//return extracted token
ByteBuffer extractedToken = key.duplicate();
extractedToken.position(key.position());
- extractedToken.limit(firstNonChar - key.position());
+ extractedToken.limit(key.position() + firstNonChar - key.position());
return extractedToken;
}

0 comments on commit 09b9f38

Please sign in to comment.