summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_legacy.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-05-23 17:55:01 -0400
committerDavid Storch <david.storch@10gen.com>2016-05-25 14:40:31 -0400
commit439df4c3bdff0194cff402a6268a9bdb9de44a7a (patch)
treec1d0c8d613d65516cce48327d183776464016634 /src/mongo/db/index_legacy.cpp
parent15deafbf2aa6524f3b05dd729b4ff378e18a2162 (diff)
downloadmongo-439df4c3bdff0194cff402a6268a9bdb9de44a7a.tar.gz
SERVER-23945 make IndexCatalog::_fixIndexSpec() use Status instead of throwing
Diffstat (limited to 'src/mongo/db/index_legacy.cpp')
-rw-r--r--src/mongo/db/index_legacy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_legacy.cpp b/src/mongo/db/index_legacy.cpp
index e9d19cc511d..f477b562927 100644
--- a/src/mongo/db/index_legacy.cpp
+++ b/src/mongo/db/index_legacy.cpp
@@ -40,7 +40,7 @@
namespace mongo {
// static
-BSONObj IndexLegacy::adjustIndexSpecObject(const BSONObj& obj) {
+StatusWith<BSONObj> IndexLegacy::adjustIndexSpecObject(const BSONObj& obj) {
std::string pluginName = IndexNames::findPluginName(obj.getObjectField("key"));
if (IndexNames::TEXT == pluginName) {