diff options
author | Benety Goh <benety@mongodb.com> | 2015-08-26 22:00:57 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2015-08-26 22:00:57 -0400 |
commit | e91d30995cbfeb69ca49db04c8e32257336898e4 (patch) | |
tree | 93839626d7266bdb2efac71f66870e9d5f2050f5 /src/mongo/db/db_raii.cpp | |
parent | b53ae44a850d011fb47596637c83d375b5751e55 (diff) | |
download | mongo-e91d30995cbfeb69ca49db04c8e32257336898e4.tar.gz |
Revert "SERVER-20052 fix linter"
This reverts commit 9142f3304aaf4585799c25706ece0cd135f83d13.
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r-- | src/mongo/db/db_raii.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp index 0363b62cd3a..5a0c9f964bd 100644 --- a/src/mongo/db/db_raii.cpp +++ b/src/mongo/db/db_raii.cpp @@ -114,7 +114,7 @@ AutoGetCollectionForRead::AutoGetCollectionForRead(OperationContext* txn, Locker::LockSnapshot lockStateBackup; massert(28795, str::stream() << "Unable to yield to wait for readConcern=majority " - << "snapshot to be available for " << nss.ns(), + << "snapshot to be available for " << nss.ns(), locker->saveLockStateAndUnlock(&lockStateBackup)); ON_BLOCK_EXIT([&]() { locker->restoreLockState(lockStateBackup); }); @@ -123,7 +123,9 @@ AutoGetCollectionForRead::AutoGetCollectionForRead(OperationContext* txn, repl::ReplicationCoordinator::get(_txn)->waitForNewSnapshot(_txn); Status status = _txn->recoveryUnit()->setReadFromMajorityCommittedSnapshot(); - uassert(28786, "failed to set read from majority-committed snapshot", status.isOK()); + uassert(28786, + "failed to set read from majority-committed snapshot", + status.isOK()); mySnapshot = _txn->recoveryUnit()->getMajorityCommittedSnapshot(); } |