From 6d26d9a1fb8ccdcc2b930f9ce3561820fb84acae Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 27 Aug 2020 15:12:43 +0000 Subject: Style chnages --- searchlib/src/tests/transactionlogstress/translogstress.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'searchlib/src/tests/transactionlogstress/translogstress.cpp') diff --git a/searchlib/src/tests/transactionlogstress/translogstress.cpp b/searchlib/src/tests/transactionlogstress/translogstress.cpp index 81a3006dbff..013ca81dcc9 100644 --- a/searchlib/src/tests/transactionlogstress/translogstress.cpp +++ b/searchlib/src/tests/transactionlogstress/translogstress.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include @@ -223,7 +222,6 @@ FeederThread::~FeederThread() = default; void FeederThread::commitPacket() { - _packet.close(); const vespalib::nbostream& stream = _packet.getHandle(); if (!_session->commit(ConstBufferRef(stream.data(), stream.size()))) { throw std::runtime_error(vespalib::make_string @@ -238,8 +236,9 @@ FeederThread::commitPacket() bool FeederThread::addEntry(const Packet::Entry & e) { - //LOG(info, "FeederThread: add %s", EntryPrinter::toStr(e).c_str()); - return _packet.add(e); + if (_packet.sizeBytes() > 0xf000) return false; + _packet.add(e); + return true; } void -- cgit v1.2.3