Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-274

cursor.equals can return an error the application might misinterpret.

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.3
    • Affects Version/s: None
    • Component/s: None

      The cursor.equals method can return standard errors – it calls cursor.get_key on both cursors to retrieve the raw cursor key, so I suspect it could at least return ENOMEM if not other errors.

      We don't really have an out-of-band error value (0 == the cursors are equal, >0 == POSIX, <0 == WT errors), so I'm not sure how to fix this.

      This impacts the change you made to the Python code to handle cursor.equals returns, as well.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: