Skip to content

fix: Reindex issue with data queries - #623

Merged
bmfmancini merged 4 commits into
1.2.xfrom
assert-value-fix
Sep 21, 2026
Merged

bmfmancini merged 4 commits into
1.2.xfrom
assert-value-fix

Conversation

@TheWitness

@TheWitness TheWitness commented Sep 18, 2026

Copy link
Copy Markdown
Member

This corrects the issues with the Reindex method calculation in spine.

Closes #622

bmfmancini
bmfmancini previously approved these changes Sep 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The reindex logic and changelog issue reference need correction.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request updates Spine’s reindex calculation for data queries and documents the fix.

Changes:

  • Refactors reindex comparisons and RECACHE logging in poller.c.
  • Adds a 1.2.32 release note in CHANGELOG.
File summaries
File Summary
poller.c Reindex comparison and uptime rollback issues remain unresolved.
CHANGELOG Release note references issue #623 instead of #622.
Review details

Suppressed comments (1)

poller.c:210

  • These operands are used for every ordered poller_reindex assertion, not only uptime. Assigning atoll() results to unsigned long long wraps negative sensor/count values to very large positives, so comparisons can be reversed when values cross zero and recaching can be missed or triggered incorrectly. Keep these temporaries signed (or restrict the unsigned type to validated uptime values).
	unsigned long long previous_uptime = 0;
	unsigned long long curr_uptime     = 0;
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread poller.c Outdated
Comment thread CHANGELOG Outdated
Update CHANGELOG with recent version changes and issues.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bmfmancini
bmfmancini merged commit c3e2b48 into 1.2.x Sep 21, 2026
3 checks passed
@bmfmancini
bmfmancini deleted the assert-value-fix branch September 21, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants