summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/index_access_method.cpp
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2022-09-02 14:25:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-02 16:33:20 +0000
commitbf9c77c2330f0414cde0c83e83dc5e7dd38cb312 (patch)
treeb98face3948a651342e974873b674b85d72f6373 /src/mongo/db/index/index_access_method.cpp
parente05c628e0bb27cffcd57a796e3a328b219ab36f2 (diff)
downloadmongo-bf9c77c2330f0414cde0c83e83dc5e7dd38cb312.tar.gz
SERVER-67611 Remove storage usages of `ErrorCategory::Interruption`
Diffstat (limited to 'src/mongo/db/index/index_access_method.cpp')
-rw-r--r--src/mongo/db/index/index_access_method.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index/index_access_method.cpp b/src/mongo/db/index/index_access_method.cpp
index cac540aae8f..4ddf9247918 100644
--- a/src/mongo/db/index/index_access_method.cpp
+++ b/src/mongo/db/index/index_access_method.cpp
@@ -1012,7 +1012,7 @@ void SortedDataIndexAccessMethod::getKeys(OperationContext* opCtx,
multikeyPaths->clear();
}
- if (ex.isA<ErrorCategory::Interruption>() || ex.isA<ErrorCategory::ShutdownError>()) {
+ if (opCtx->isKillPending()) {
throw;
}