Don't overlap data source and connection statistic identifiers

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • WT2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 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
              Reporter:
              Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: