diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-11-23 20:49:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-24 20:09:10 +0000 |
commit | b7cf8fbfcc547015f7fcd8521f4890b8ee8598f6 (patch) | |
tree | f901a4f235a44075e3076ee56c9bcdfe70349fe8 /src/mongo/db/client.cpp | |
parent | 3a5d86a2cde6b84235050190d6af4fd0750e666c (diff) | |
download | mongo-b7cf8fbfcc547015f7fcd8521f4890b8ee8598f6.tar.gz |
SERVER-49468 Kill and throw when OperationContexts are overwritten
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r-- | src/mongo/db/client.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp index 67d957d7559..cd331631002 100644 --- a/src/mongo/db/client.cpp +++ b/src/mongo/db/client.cpp @@ -115,17 +115,6 @@ ServiceContext::UniqueOperationContext Client::makeOperationContext() { return getServiceContext()->makeOperationContext(this); } -void Client::setOperationContext(OperationContext* opCtx) { - // We can only set the OperationContext once before resetting it. - invariant(opCtx != nullptr && _opCtx == nullptr); - _opCtx = opCtx; -} - -void Client::resetOperationContext() { - invariant(_opCtx != nullptr); - _opCtx = nullptr; -} - std::string Client::clientAddress(bool includePort) const { if (!hasRemote()) { return ""; |