File tree Expand file tree Collapse file tree
include/ipfixprobe/outputPlugin/outputStorage Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments