clang-format does odd things with BSON doc

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • ALL
    • Platform 6 07/17/15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Insists on reverting this:

      diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_test.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_test.cpp
      index aae1056..9a4a0e0 100644
      --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_test.cpp
      +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_test.cpp
      @@ -541,8 +541,7 @@ TEST(WiredTigerRecordStoreTest, OplogHack) {
                       rs->insertRecord(opCtx.get(), obj.objdata(), obj.objsize(), false).getStatus(),
                       ErrorCodes::BadValue);
       
      -            obj = BSON("ts"
      -                       << "not a Timestamp");
      +            obj = BSON("ts" << "not a Timestamp");
                   ASSERT_EQ(
                       rs->insertRecord(opCtx.get(), obj.objdata(), obj.objsize(), false).getStatus(),
                       ErrorCodes::BadValue);
      

              Assignee:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Martin Bligh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: