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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.0, 3.2.11, 3.4.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage 2016-10-31

      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));
      

            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: