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

Fix a bug where opening a cursor on an incomplete table drops core

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.2.11, 3.4.0-rc2
    • Labels:
      None
    • Sprint:
      Storage 2016-10-31

      Description

      Daniel Gottlieb reports that opening a cursor on an incomplete table drops core.

      WT_CONNECTION *conn;
      WT_CURSOR *cursor;
      WT_SESSION *session;
       
      (void)system("rm -rf WT_TEST && mkdir WT_TEST");
       
      check(wiredtiger_open("WT_TEST", NULL, "create", &conn));
      check(conn->open_session(conn, NULL, NULL, &session));
      check(session->create(session,
          "table:poptable",
          "key_format=r,value_format=5sHQ,"
          "columns=(id,country,year,population),"
          "colgroups=(main,population)"));
      check(session->open_cursor(session,
          "table:poptable(country)", NULL, NULL, &cursor));
      

        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: