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

Coverity #1393311 Copy-paste error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6, 4.0.0-rc6, WT3.1.0, 4.1.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      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

            Assignee:
            keith.bostic Keith Bostic
            Reporter:
            keith.bostic Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: