$showDiskLoc does not work with covered indexes in get more

XMLWordPrintableJSON

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

      > 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
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: