Skip to content

Commit 984d061

Browse files
committed
Code review comments
1 parent 4baa5a2 commit 984d061

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

cpp/arcticdb/pipeline/read_frame.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ void decode_index_field(
244244
context.descriptor().fields(0).type(), frame_field_descriptor.type());
245245

246246
std::optional<util::BitMagic> bv;
247-
log::version().debug("{}", dump_bytes(begin, (data - begin) + encoding_sizes::field_compressed_size(field), 100u));
248247
data += decode_field(frame_field_descriptor.type(), field, data, sink, bv, encoding_version);
249248
util::check(!bv, "Unexpected sparse vector in index field");
250249
ARCTICDB_DEBUG(log::codec(), "Decoded index column {} to position {}", 0, data - begin);

cpp/arcticdb/storage/s3/s3_client_impl.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ S3Result<std::monostate> S3ClientImpl::put_object(
190190
ARCTICDB_RUNTIME_DEBUG(log::storage(), "Set s3 key {}", request.GetKey().c_str());
191191
auto [dst, write_size, buffer] = segment.serialize_header();
192192

193-
auto seg_header [[maybe_unused]] = reinterpret_cast<FixedHeader*>(dst);
194193
auto body = std::make_shared<boost::interprocess::bufferstream>(reinterpret_cast<char *>(dst), write_size);
195194
util::check(body->good(), "Overflow of bufferstream with size {}", write_size);
196195
request.SetBody(body);

cpp/arcticdb/util/buffer.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ struct Buffer : public BaseBuffer<Buffer, true> {
248248
}
249249

250250
void check_invariants() const {
251-
//#ifdef DEBUG_BUILD
251+
#ifdef DEBUG_BUILD
252252
util::check(preamble_bytes_ + body_bytes_ <= capacity_, "total_bytes exceeds capacity {} + {} > {}", preamble_bytes_, body_bytes_, capacity_);
253253
util::check(total_bytes() == preamble_bytes_ + body_bytes_, "Total bytes calculation is incorrect {} != {} + {}", total_bytes(), preamble_bytes_, body_bytes_);
254254
util::check(data_ + preamble_bytes_ == ptr_, "Buffer pointer is in the wrong place {} + {} != {}", uintptr_t(data_), preamble_bytes_, uintptr_t(ptr_));
255-
//#endif
255+
#endif
256256
}
257257

258258
uint8_t *data_ = nullptr;

0 commit comments

Comments
 (0)