Skip to content

Streamed layers count unread dates, <Null> text and non-UTF-8 text twice when a window is read again before the notice pass #2615

Closed

Description

@giswqs

SourceLayer::saw_unread_dates, saw_null_text and (from #2325) saw_not_utf8 add each view batch's counts until the notice pass says them. When a view reads the same window twice before that pass (after a reset, say), the same values are counted twice, so the "so far" count in the notice can be higher than the values that layer actually holds.

The notice already says "so far" and points to Load All Features for the full count, so nothing is lost, but the number is wrong. A fix applies to all three accumulators together: either keep the latest batch per window instead of summing, or track which rows were counted. Raised in review of #2325 (thread on crates/map/src/lib.rs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions