diff options
author | Benety Goh <benety@mongodb.com> | 2019-09-25 10:27:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-25 10:27:37 +0000 |
commit | 8f11dec55a066526cdef2967c763b4d23b26d636 (patch) | |
tree | 63703351548827e263267b5b1dd4f24791cdca55 /src/mongo/db/fts | |
parent | 65388a9c2939a0fda5c9e2addbac377e2c49c176 (diff) | |
download | mongo-8f11dec55a066526cdef2967c763b4d23b26d636.tar.gz |
SERVER-43128 fix windows compile
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/fts_spec.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/fts/fts_spec.cpp b/src/mongo/db/fts/fts_spec.cpp index aeaacd08e21..393eef83127 100644 --- a/src/mongo/db/fts/fts_spec.cpp +++ b/src/mongo/db/fts/fts_spec.cpp @@ -99,7 +99,7 @@ FTSSpec::FTSSpec(const BSONObj& indexInfo) { auto indexLanguage = indexInfo["default_language"].String(); try { _defaultLanguage = &FTSLanguage::make(indexLanguage, _textIndexVersion); - } catch (const DBException& ex) { + } catch (const DBException&) { // This can fail if the user originally created the text index under an instance of // MongoDB that supports different languages then the current instance // TODO: consder propagating the index ns to here to improve the error message @@ -165,7 +165,7 @@ const FTSLanguage* FTSSpec::_getLanguageToUseV2(const BSONObj& userDoc, e.type() == mongo::String); try { return &FTSLanguage::make(e.String(), getTextIndexVersion()); - } catch (DBException& ex) { + } catch (DBException&) { uasserted(17262, "language override unsupported: " + e.String()); } } @@ -443,7 +443,7 @@ StatusWith<BSONObj> FTSSpec::fixSpec(const BSONObj& spec) { try { FTSLanguage::make(default_language, TEXT_INDEX_VERSION_3); - } catch (DBException& ex) { + } catch (DBException&) { return {ErrorCodes::CannotCreateIndex, "default_language is not valid"}; } |