Skip to content

Commit 4c982e3

Browse files
authored
Merge pull request #336 from mtconnect/period-filter-round-2
Version 2.2.0.8 – fixed boundry race condition between replay of samp…
2 parents e65463d + a41377a commit 4c982e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set(AGENT_VERSION_MAJOR 2)
33
set(AGENT_VERSION_MINOR 2)
44
set(AGENT_VERSION_PATCH 0)
5-
set(AGENT_VERSION_BUILD 7)
5+
set(AGENT_VERSION_BUILD 8)
66
set(AGENT_VERSION_RC "")
77

88
# This minimum version is to support Visual Studio 2019 and C++ feature checking and FetchContent

src/mtconnect/observation/change_observer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ namespace mtconnect::observation {
215215
// This will allow the next set of data to be pulled. Any later events will have
216216
// greater sequence numbers, so this should not cause a problem. Also, signaled
217217
// sequence numbers can only decrease, never increase.
218-
m_sequence = m_observer.getSequence();
218+
if (m_observer.getSequence() > m_sequence)
219+
m_sequence = m_observer.getSequence();
219220
m_observer.reset();
220221
}
221222
}

0 commit comments

Comments
 (0)