diff --git a/src/backend/common/SerialQueue.h b/src/backend/common/SerialQueue.h index 4a6b683161..5dcbbe3574 100644 --- a/src/backend/common/SerialQueue.h +++ b/src/backend/common/SerialQueue.h @@ -110,12 +110,14 @@ namespace backend { template void SerialQueue::Enqueue(const std::vector& values, Serial serial) { + ASSERT(values.size() > 0); ASSERT(Empty() || storage.back().first <= serial); storage.emplace_back(SerialPair(serial, {values})); } template void SerialQueue::Enqueue(std::vector&& values, Serial serial) { + ASSERT(values.size() > 0); ASSERT(Empty() || storage.back().first <= serial); storage.emplace_back(SerialPair(serial, {values})); }