summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 00:22:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 10:56:02 -0400
commit9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch)
tree3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/db/operation_context.cpp
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/operation_context.cpp')
-rw-r--r--src/mongo/db/operation_context.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp
index 703eca38030..a327d2c18f3 100644
--- a/src/mongo/db/operation_context.cpp
+++ b/src/mongo/db/operation_context.cpp
@@ -34,21 +34,20 @@
namespace mongo {
- OperationContext::OperationContext(Client* client, unsigned int opId, Locker* locker) :
- _client(client), _opId(opId), _locker(locker) {
- }
-
- Client* OperationContext::getClient() const {
- invariant(_client);
- return _client;
- }
-
- void OperationContext::markKilled() {
- _killPending.store(1);
- }
-
- bool OperationContext::isKillPending() const {
- return _killPending.loadRelaxed();
- }
+OperationContext::OperationContext(Client* client, unsigned int opId, Locker* locker)
+ : _client(client), _opId(opId), _locker(locker) {}
+
+Client* OperationContext::getClient() const {
+ invariant(_client);
+ return _client;
+}
+
+void OperationContext::markKilled() {
+ _killPending.store(1);
+}
+
+bool OperationContext::isKillPending() const {
+ return _killPending.loadRelaxed();
+}
} // namespace mongo