summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 14:47:28 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit5a1b0681dcee481f631dc647000b895e20cc7cfd (patch)
tree57b1d42d0eb94750d3855cba6886700776022d31 /src/mongo/db/catalog
parentc593ea7bb9815ced064ad8aa7ffa206fa94757c4 (diff)
downloadmongo-5a1b0681dcee481f631dc647000b895e20cc7cfd.tar.gz
SERVER-30580 Eliminate DBException::getCode() in favor of code()
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/collection_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp
index 3a58725d9b0..3cfbbe3841f 100644
--- a/src/mongo/db/catalog/collection_impl.cpp
+++ b/src/mongo/db/catalog/collection_impl.cpp
@@ -1224,7 +1224,7 @@ Status CollectionImpl::validate(OperationContext* opCtx,
log(LogComponent::kIndex) << "validated collection " << ns().toString() << endl;
}
} catch (DBException& e) {
- if (ErrorCodes::isInterruption(ErrorCodes::Error(e.getCode()))) {
+ if (ErrorCodes::isInterruption(e.code())) {
return e.toStatus();
}
string err = str::stream() << "exception during index validation: " << e.toString();