summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-04-26 19:25:09 -0400
committerMathias Stearn <mathias@10gen.com>2016-05-10 14:23:16 -0400
commitbef7b9a89f3a24ed563e958ab789595ac1cc39cc (patch)
treef3baed779e45e03a6f80b1b96dd31fb16f47b1b4 /src/mongo/db/operation_context.cpp
parent23c5d7e44c5447769a46e6d4e10ae6237e8de5fd (diff)
downloadmongo-bef7b9a89f3a24ed563e958ab789595ac1cc39cc.tar.gz
SERVER-23873 Optimize checking for interrupt
Diffstat (limited to 'src/mongo/db/operation_context.cpp')
-rw-r--r--src/mongo/db/operation_context.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp
index 1434ee5ddc7..c8e4ad61137 100644
--- a/src/mongo/db/operation_context.cpp
+++ b/src/mongo/db/operation_context.cpp
@@ -38,21 +38,9 @@ namespace mongo {
OperationContext::OperationContext(Client* client, unsigned int opId, Locker* locker)
: _client(client), _opId(opId), _locker(locker) {}
-ServiceContext* OperationContext::getServiceContext() const {
- return _client->getServiceContext();
-}
-
-Client* OperationContext::getClient() const {
- return _client;
-}
-
void OperationContext::markKilled(ErrorCodes::Error killCode) {
invariant(killCode != ErrorCodes::OK);
_killCode.compareAndSwap(ErrorCodes::OK, killCode);
}
-ErrorCodes::Error OperationContext::getKillStatus() const {
- return _killCode.loadRelaxed();
-}
-
} // namespace mongo