You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kudu.apache.org by "gangliao (via GitHub)" <gi...@apache.org> on 2023/03/13 05:12:14 UTC

[GitHub] [kudu] gangliao commented on a diff in pull request #51: fix: set the result block to the decompressed data

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


##########
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:
   ```
       buf = scratch.get();
       block = scratch.as_slice();
   ```



-- 
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-unsubscribe@kudu.apache.org

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