Clear messages acked/expected acks on buffered producer

This commit is contained in:
Matias Fontanini
2017-07-11 10:17:58 -07:00
parent b7a0dce710
commit 2340046544

View File

@@ -224,6 +224,8 @@ template <typename BufferType>
void BufferedProducer<BufferType>::clear() { void BufferedProducer<BufferType>::clear() {
QueueType tmp; QueueType tmp;
std::swap(tmp, messages_); std::swap(tmp, messages_);
expected_acks_ = 0;
messages_acked_ = 0;
} }
template <typename BufferType> template <typename BufferType>