You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2022/07/08 17:52:06 UTC

[hadoop] branch trunk updated: MAPREDUCE-7388. Remove unused variable _eof in GzipCodec.cc (#4429)

This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new fac895828f7 MAPREDUCE-7388. Remove unused variable _eof in GzipCodec.cc (#4429)
fac895828f7 is described below

commit fac895828f714b5587b57900d588acac69880c1e
Author: cfg1234 <37...@users.noreply.github.com>
AuthorDate: Sat Jul 9 01:51:49 2022 +0800

    MAPREDUCE-7388. Remove unused variable _eof in GzipCodec.cc (#4429)
    
    Co-authored-by: cWX456268 <ch...@huawei.com>
    Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
 .../src/main/native/src/codec/GzipCodec.cc                              | 2 --
 .../src/main/native/src/codec/GzipCodec.h                               | 1 -
 2 files changed, 3 deletions(-)

diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.cc b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.cc
index b0b985296c8..2e98436918b 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.cc
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.cc
@@ -135,7 +135,6 @@ GzipDecompressStream::GzipDecompressStream(InputStream * stream, uint32_t buffer
   }
   zstream->next_in = NULL;
   zstream->avail_in = 0;
-  _eof = false;
 }
 
 GzipDecompressStream::~GzipDecompressStream() {
@@ -156,7 +155,6 @@ int32_t GzipDecompressStream::read(void * buff, uint32_t length) {
     if (zstream->avail_in == 0) {
       int32_t rd = _stream->read(_buffer, _capacity);
       if (rd <= 0) {
-        _eof = true;
         size_t wt = zstream->next_out - (Bytef*)buff;
         return wt > 0 ? wt : -1;
       } else {
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.h b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.h
index a5f986ef967..af58d372744 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.h
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/codec/GzipCodec.h
@@ -60,7 +60,6 @@ protected:
   char * _buffer;
   uint32_t _capacity;
   void * _zstream;
-  bool _eof;
 public:
   GzipDecompressStream(InputStream * stream, uint32_t bufferSizeHint);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org