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

Coverity #1393311 Copy-paste error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.6.6, 4.0.0-rc6, WT3.1.0, 4.1.1
    • None
    • None
    • Storage Non-NYC 2018-06-18

    Description

      In csuite/wt4105_large_doc_small_upd/main.c:

       132 /* Start another session to perform small updates. */
       133 testutil_check(
       134 opts->conn->open_session(opts->conn, NULL, NULL, &session2));
       
       CID 1393311 (#1 of 1): Copy-paste error (COPY_PASTE_ERROR)
       copy_paste_error: session in *session->open_cursor looks like a copy-paste error.
       Should it say session2 instead?
       
       135 testutil_check(
       136 session->open_cursor(session2, uri, NULL, NULL, &c));
       137
       138 j = offset = 0;
      

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic
            keith.bostic@mongodb.com Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: