Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Outstation accepts bad database configuration in discontiguous index mode. #244

Closed
emgre opened this issue Aug 7, 2018 · 1 comment
Closed

Comments

@emgre
Copy link
Member

emgre commented Aug 7, 2018

When an outstation is created with IndexMode::Discontiguous, it expects that the points are sorted by index value. However, if the user does not order the points, the library does not advertise the misconfiguration and updates may fail later on (because of the binary search expecting the points to be ordered).

  • The library should advertise in case of misconfiguration of the database or sort the points by itself.
  • The documentation should be updated to emphasize the fact that it expects the points to be ordered (if it's not already the case, but I couldn't find where it said so)
@jadamcrain
Copy link
Member

Resolved in PR 296

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants