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

Fix $bit with and+or

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.2
    • None
    • Write Ops
    • None

    Description

      Currently these are failing:

      ReplTests::Idempotence::BitOp – seems to be the same issue as below
      UpdateTests –

      test( BSON( "_id" << 1 << "x" << 3 ) , BSON( "$bit" << BSON( "x" << BSON( "and" << 2 << "or" << 8 ) ) ) , BSON( "_id" << 1 << "x" << ( ( 3 & 2 ) | 8 ) ) );
      test( BSON( "_id" << 1 << "x" << 3 ) , BSON( "$bit" << BSON( "x" << BSON( "or" << 2 << "and" << 8 ) ) ) , BSON( "_id" << 1 << "x" << ( ( 3 | 2 ) & 8 ) ) );

      For now, to run the tests you can enable the new update framework as the default mode in code (I am working on making this an option for smoke.py to run with for our automated test) and run this:

       scons test && ./test update repl 

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: