update must keep track of all modified docs, even if they don't move

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Write Ops
    • None
    • ALL
    • Hide
      t.drop();
      
      t.save( { x : 1 } );
      t.save( { x : 2 } );
      t.save( { x : 3 } );
      
      t.ensureIndex( { x : 1 } );
      t.update( { x : { $gt : 0 } } , { $inc : { x : 5 } } , false , true );
      
      Show
      t.drop(); t.save( { x : 1 } ); t.save( { x : 2 } ); t.save( { x : 3 } ); t.ensureIndex( { x : 1 } ); t.update( { x : { $gt : 0 } } , { $inc : { x : 5 } } , false , true );
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Otherwise we'll continually update the same document. Our jstest for this didn't catch the issue because it used to use a collection scan for the underlying query execution.

              Assignee:
              hari.khalsa@10gen.com
              Reporter:
              hari.khalsa@10gen.com
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: