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

Don't overlap data source and connection statistic identifiers

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.0
    • Affects Version/s: None
    • Component/s: None
    • None

      At the moment connection and data source statistics identifiers have overlapping ranges. That can lead to confusion, for example:

      WT_CURSOR *c;
      session->open_cursor(session, "statistics:", NULL, "statistics=[fast,clear]", &c);
      c->set_key(c, WT_STAT_DSRC_LSM_CHUNK_COUNT);
      c->search(c);
      

      Will return a value, but it will correspond to

      Unable to find source-code formatter for language: wt_stat_conn_memory_free```. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      . It would be better if the search failed with 

      WT_NOTFOUND{{`}}.

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: