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

Correct the order of operations in test_timestamp09.py

      In Python test test_timestamp09.py, the order of statements in one of the tests appears to be incorrect.

      At line 49 (see code below), the c[1] = 1 code should be between the begin and commit transaction calls, rather than afterwards.

      # Begin by adding some data.
      self.session.begin_transaction()
      self.session.commit_transaction(
          'commit_timestamp=' + self.timestamp_str(1))
      c[1] = 1

      As the above code does not check that any data has been successfully added, there is no error generated. 

      Definition of done:

      • The  c[1] = 1  code is between the begin and commit calls.

       

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: