diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-10-23 18:00:22 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-10-23 18:02:06 -0400 |
commit | 0ca67590714744c2cb5242d0536bae48ea8c6795 (patch) | |
tree | d5dcc643be5b87977798b01b37f7ef4a51d8475c /src/mongo/util | |
parent | 9284edb11f0626c77017117ef02790881586aa26 (diff) | |
download | mongo-0ca67590714744c2cb5242d0536bae48ea8c6795.tar.gz |
SERVER-21097 Add a lint rule to prohibit std::atomic, add NOLINT to existing uses.
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/assert_util.cpp | 2 | ||||
-rw-r--r-- | src/mongo/util/assert_util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/assert_util.cpp b/src/mongo/util/assert_util.cpp index ceb3007ae38..764afacb140 100644 --- a/src/mongo/util/assert_util.cpp +++ b/src/mongo/util/assert_util.cpp @@ -74,7 +74,7 @@ void AssertionCount::condrollover(int newvalue) { rollover(); } -std::atomic<bool> DBException::traceExceptions(false); +std::atomic<bool> DBException::traceExceptions(false); // NOLINT string DBException::toString() const { stringstream ss; diff --git a/src/mongo/util/assert_util.h b/src/mongo/util/assert_util.h index c32e770b0e4..3334a62182f 100644 --- a/src/mongo/util/assert_util.h +++ b/src/mongo/util/assert_util.h @@ -130,7 +130,7 @@ private: static void traceIfNeeded(const DBException& e); public: - static std::atomic<bool> traceExceptions; + static std::atomic<bool> traceExceptions; // NOLINT protected: ExceptionInfo _ei; |