ibessonov commented on a change in pull request #654:
URL: https://github.com/apache/ignite-3/pull/654#discussion_r805572317
##########
File path:
modules/storage-rocksdb/src/main/java/org/apache/ignite/internal/storage/rocksdb/RocksDbPartitionStorage.java
##########
@@ -494,16 +491,29 @@ protected DataRow decodeEntry(byte[] key, byte[] value) {
* Creates a key used in this partition storage by prepending a partition
ID (to distinguish between different partition data)
* and the key's hash (an optimisation).
*/
- private byte[] partitionKey(byte[] key) {
- return ByteBuffer.allocate(PARTITION_KEY_PREFIX_SIZE + key.length)
+ private byte[] partitionKey(SearchRow key) {
+ ByteBuffer keyBuffer = key.key().rewind();
+
+ return ByteBuffer.allocate(PARTITION_KEY_PREFIX_SIZE +
keyBuffer.capacity())
Review comment:
Alright, I'll change it to limit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]