parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject parquet-cpp git commit: PARQUET-739: Don't use a static buffer for data accessed by multiple threads
Date Tue, 11 Oct 2016 02:45:55 GMT
Repository: parquet-cpp
Updated Branches:
  refs/heads/master ac4e80c97 -> a26ed0f17


PARQUET-739: Don't use a static buffer for data accessed by multiple threads

I am hitting this problem at another location too.

Author: Deepak Majeti <deepak.majeti@hpe.com>

Closes #177 from majetideepak/PARQUET-739 and squashes the following commits:

85a73f1 [Deepak Majeti] PARQUET-739


Project: http://git-wip-us.apache.org/repos/asf/parquet-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/parquet-cpp/commit/a26ed0f1
Tree: http://git-wip-us.apache.org/repos/asf/parquet-cpp/tree/a26ed0f1
Diff: http://git-wip-us.apache.org/repos/asf/parquet-cpp/diff/a26ed0f1

Branch: refs/heads/master
Commit: a26ed0f179c3ecab662a8c760504a3e370a4dc02
Parents: ac4e80c
Author: Deepak Majeti <deepak.majeti@hpe.com>
Authored: Mon Oct 10 22:45:49 2016 -0400
Committer: Wes McKinney <wesm@apache.org>
Committed: Mon Oct 10 22:45:49 2016 -0400

----------------------------------------------------------------------
 src/parquet/util/bit-stream-utils.inline.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/parquet-cpp/blob/a26ed0f1/src/parquet/util/bit-stream-utils.inline.h
----------------------------------------------------------------------
diff --git a/src/parquet/util/bit-stream-utils.inline.h b/src/parquet/util/bit-stream-utils.inline.h
index 5cdf76b..c3486f7 100644
--- a/src/parquet/util/bit-stream-utils.inline.h
+++ b/src/parquet/util/bit-stream-utils.inline.h
@@ -149,7 +149,7 @@ inline int BitReader::GetBatch(int num_bits, T* v, int batch_size) {
     byte_offset += num_unpacked * num_bits / 8;
   } else {
     const int buffer_size = 1024;
-    static uint32_t unpack_buffer[buffer_size];
+    uint32_t unpack_buffer[buffer_size];
     while (i < batch_size) {
       int unpack_size = std::min(buffer_size, batch_size - i);
       int num_unpacked = unpack32(reinterpret_cast<const uint32_t*>(buffer + byte_offset),


Mime
View raw message