diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-01 14:47:28 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
commit | 5a1b0681dcee481f631dc647000b895e20cc7cfd (patch) | |
tree | 57b1d42d0eb94750d3855cba6886700776022d31 /src/mongo/db/catalog | |
parent | c593ea7bb9815ced064ad8aa7ffa206fa94757c4 (diff) | |
download | mongo-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.cpp | 2 |
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(); |