Fix block count in block report
@@ -2618,10 +2618,8 @@ public static BlockReport convert(
blocks = BlockListAsLongs.decodeBuffers(num, bucketProto.getBlocksBuffersList());
} else {
- int numBlocksInBucket = bucketProto.getBlocksCount();
-
- numBlocks += numBlocksInBucket;
blocks = BlockListAsLongs.decodeLongs(bucketProto.getBlocksList());
+ numBlocks += blocks.getNumberOfBlocks();
}
Bucket bucket = new Bucket();
