diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-07-19 16:33:19 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-07-23 14:51:10 -0400 |
commit | 737bfd75a92d121313bedadf4d85534b529b9ddf (patch) | |
tree | eb668fb950e43ccb0240c5accd794588d200c385 /src/mongo/db/introspect.cpp | |
parent | 42117c9cc5878739b764d0ce41fc4b635241f772 (diff) | |
download | mongo-737bfd75a92d121313bedadf4d85534b529b9ddf.tar.gz |
SERVER-42164 Allowed ErrorCode::is{Category} to take a Status
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index 3da10a1a290..dc9677cc78c 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -198,7 +198,7 @@ void profile(OperationContext* opCtx, NetworkOp op) { } } } catch (const AssertionException& assertionEx) { - if (acquireDbXLock && assertionEx.isA<ErrorCategory::Interruption>()) { + if (acquireDbXLock && ErrorCodes::isInterruption(assertionEx)) { warning() << "Interrupted while attempting to create profile collection in database " << dbName << " to profile operation " << networkOpToString(op) << " against " |