Fix $bit with and+or

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.2
    • Affects Version/s: None
    • Component/s: Write Ops
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: