Skip to content

Commit

Permalink
GSF.SortedTreeStore: UnionTreeStreamSortHelper.cs - Major bug fix fou…
Browse files Browse the repository at this point in the history
…nd by yuwenpeng. This would result in occasional data loss. This data loss would only occur if duplicate records were written to the openHistorian. Every time duplicate records were written, there was a very very minor chance that the duplicate record could cause a rollover operation to end prematurely. If writing duplicate records is commonplace, data loss can occur on a regular basis.
  • Loading branch information
StevenChisholm committed Feb 12, 2017
1 parent 8e394c4 commit 437ed9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void SortAssumingIncreased(int index)
if (!itemToMove.IsValid)
{
m_validRecords--;
for (int x = 0; x < m_validRecords; x++)
for (int x = index; x < m_validRecords; x++)
{
Items[x] = Items[x + 1];
}
Expand Down

0 comments on commit 437ed9d

Please sign in to comment.