From 2dfd046a56ffcfd61ad5f124c1ae793ae619a6c7 Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Mon, 10 Oct 2016 22:45:49 -0400 Subject: [PATCH] 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 Closes #177 from majetideepak/PARQUET-739 and squashes the following commits: 85a73f1 [Deepak Majeti] PARQUET-739 Change-Id: I745c246ba928a7cc5c29a4535e5b01f1bd391a82 --- cpp/src/parquet/util/bit-stream-utils.inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/parquet/util/bit-stream-utils.inline.h b/cpp/src/parquet/util/bit-stream-utils.inline.h index 5cdf76b50e2a5..c3486f77e2508 100644 --- a/cpp/src/parquet/util/bit-stream-utils.inline.h +++ b/cpp/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(buffer + byte_offset),