alexeyserbin commented on code in PR #51:
URL: https://github.com/apache/kudu/pull/51#discussion_r1684709521


##########
src/kudu/cfile/cfile_reader.cc:
##########
@@ -546,7 +546,7 @@ Status CFileReader::ReadBlock(const IOContext* io_context,
     scratch.Swap(&decompressed_scratch);
 
     // Set the result block to our decompressed data.
-    block = Slice(buf, uncompressed_size);
+    block = scratch.as_slice();

Review Comment:
   Didn't you miss this:
   
     Slice block(buf, data_size);
     ...
     CompressedBlockDecoder uncompressor(codec_, cfile_version_, block);
     ....
   
   ?



-- 
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: dev-unsubscr...@kudu.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to