Skip to content

Commit 967c1ed

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++
1 parent fe66ff5 commit 967c1ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/ipfixprobe/outputPlugin/outputStorage/mqOutputStorage.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ class MQOutputStorage : public OutputStorage<ElementType> {
154154
// m_readBuffer.reserve(capacity);
155155
m_stateBuffer.setNewValue(
156156
State {
157+
.written = 0,
157158
.readBuffer = {allocatedSpace.data(), allocatedSpace.size() / 2},
158159
.writeBuffer
159160
= {allocatedSpace.data() + allocatedSpace.size() / 2,
160161
allocatedSpace.size() / 2},
161162
.readerGroupPositions = {},
162-
.written = 0,
163163
});
164164
}
165165

@@ -184,11 +184,11 @@ class MQOutputStorage : public OutputStorage<ElementType> {
184184
// WriteLockGuard lockGuard(m_lock);
185185
m_stateBuffer.setNewValue(
186186
State {
187+
.written = 0,
187188
.readBuffer = currentState->writeBuffer,
188189
.writeBuffer = currentState->readBuffer,
189190
.readerGroupPositions
190191
= decltype(currentState->readerGroupPositions)(readerGroupCount),
191-
.written = 0,
192192
});
193193
currentState = &m_stateBuffer.getCurrentValue();
194194
}

0 commit comments

Comments
 (0)