Skip to content

Possible logic inversion in iterate a cursor #452

Closed

Description

@stelar7

openCursor creates a cursor with the key only flag set to false, source as an ObjectStore and then iterates it.

iterate a cursor step 13 checks if the key only flag is false, and then tries to access the referenced value.

Only Index Records have referenced values

Should step 13 be checking if the flag is true? If source is an index? Or am I missing something?

Activity

  1. inexorabletash commented on Apr 29, 2025

    @inexorabletash
    Member

    I think that's a glitch... I would expect the line to be:

    Let serialized be found record's value if source is an object store, or found record's referenced value otherwise.

  2. added a commit that references this issue on May 1, 2025
    896d5be
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions