Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5372

$showDiskLoc does not work with covered indexes in get more

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.10
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • ALL

      > c.ensureIndex( { a:1 } )
      > c.save( { a:1 } )
      > c.save( { a:1 } )
      > c.save( { a:1 } )
      > c.find( {}, { _id:0, a:1 } ).hint( { a:1 } )._addSpecial("$showDiskLoc" , true).batchSize( 2 )
      { "a" : 1, "$diskLoc" : { "file" : 0, "offset" : 57520 } }
      { "a" : 1, "$diskLoc" : { "file" : 0, "offset" : 57572 } }
      { "a" : 1 }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: