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

SWIG _modify cursor extension uses self instead of $self

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Test Python
    • StorEng - Defined Pipeline

      The SWIG keyword is $self but this code uses an undecorated self

      /*
       * modify: the size of the array was put into the first element by the
       * typemap.
       */
      int _modify(WT_MODIFY *list) {
      	int count = (int)list[0].size;
      	return (self->modify(self, &list[1], count));
      }
      

      It's unclear to me as to why this silently works, perhaps the code is unused/evaluated?

      1. Identify why there is no error.
      2. Determine whether code should be fixed or removed.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            marc.butler@mongodb.com Marc Butler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: