summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-03-04 11:38:24 -0500
committerEliot Horowitz <eliot@10gen.com>2013-03-04 14:20:06 -0500
commitacfb8d8abda2587c6015b354684614a5a1adbbd1 (patch)
treececb8de589639d067dc3a61d0a032435b64a5972 /src
parent4cfc0636c0768a5590c0e961e88f4976c63fe490 (diff)
downloadmongo-acfb8d8abda2587c6015b354684614a5a1adbbd1.tar.gz
This version of FTS only works with index version 1
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/fts/fts_spec.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/fts/fts_spec.cpp b/src/mongo/db/fts/fts_spec.cpp
index 229019d9852..0229f5cfd2f 100644
--- a/src/mongo/db/fts/fts_spec.cpp
+++ b/src/mongo/db/fts/fts_spec.cpp
@@ -379,8 +379,10 @@ namespace mongo {
}
else if ( str::equals( e.fieldName(), "textIndexVersion" ) ) {
textIndexVersion = e.numberInt();
+ uassert( 16730,
+ str::stream() << "bad textIndexVersion: " << textIndexVersion,
+ textIndexVersion == 1 );
}
-
else {
b.append( e );
}