FairMQ: allow accumulation of parts on receive.

This commit is contained in:
Alexey Rybalchenko
2017-04-27 14:05:02 +02:00
committed by Mohammad Al-Turany
parent 1fa5c836a6
commit 0926a9a764
4 changed files with 26 additions and 27 deletions

View File

@@ -269,11 +269,11 @@ int64_t FairMQSocketZMQ::Receive(vector<unique_ptr<FairMQMessage>>& msgVec, cons
while (true)
{
// Warn if the vector is filled before Receive() and empty it.
if (msgVec.size() > 0)
{
LOG(WARN) << "Message vector contains elements before Receive(), they will be deleted!";
msgVec.clear();
}
// if (msgVec.size() > 0)
// {
// LOG(WARN) << "Message vector contains elements before Receive(), they will be deleted!";
// msgVec.clear();
// }
totalSize = 0;
more = 0;