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

clang-format does odd things with BSON doc

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

      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:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            martin.bligh Martin Bligh
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: