Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-219

Change showDiskLoc to showRecordId

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-813 Done
      SCALA-202 Done 1.1.0
      RUBY-1008 Done 1.12.4, 2.2.0
      CXX-655 Done
      NODE-538 Done 2.0.44
      RUST-21 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-813 Done SCALA-202 Done 1.1.0 RUBY-1008 Done 1.12.4, 2.2.0 CXX-655 Done NODE-538 Done 2.0.44 RUST-21 Done

      This ticket is motivated by server changes made under SERVER-17718 and pushed in commit 374438c9134e6e31322.

      The aforementioned commit deprecated the shell's showDiskLoc() helper and added a new showRecordId() helper. Drivers which offer a similar helper should consider doing the same.

      The $showDiskLoc query flag is still the correct flag for an OP_QUERY style find, so this change shouldn't break drivers. Note, however, that the find command field has been renamed to showRecordId.

      Changes made for SERVER-17718 also changed the format of the meta-projection performed by showRecordId from something like

      "$diskLoc" : { "file" : 0, "offset" : 20656 }
      

      to something like

      "$recordId" : NumberLong(20656)
      

      Drivers tests for this feature may have to be updated.

            Assignee:
            barrie Barrie Segal
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: