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

WT_CURSOR URI doesn't always match create URI

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

      Sometimes the URI stored in a

      Unable to find source-code formatter for language: wt_cursor```. 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
       doesn't match that passed in by the user to 

      WT_SESSION::open_cursor

      . For example if "table:mytable" is passed in to 

      open_cursor

      , the WT_CURSOR->uri field may be 

      file:mytable.wt`.

      That could be confusing for users of the API, who may access the field. We actually document that it matches:

      The name of the data source for the cursor, matches the uri parameter to WT_SESSION::open_cursor used to open the cursor.

      From http://source.wiredtiger.com/develop/struct_w_t___c_u_r_s_o_r.html#a9158605cfaab4e3b00c5ef1af3d3bc3f

            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: