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

Coverity #1393311 Copy-paste error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.6, 4.0.0-rc6, WT3.1.0, 4.1.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Non-NYC 2018-06-18

      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;
      

            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: