diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-03-04 11:38:24 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-03-04 14:20:06 -0500 |
commit | acfb8d8abda2587c6015b354684614a5a1adbbd1 (patch) | |
tree | cecb8de589639d067dc3a61d0a032435b64a5972 | |
parent | 4cfc0636c0768a5590c0e961e88f4976c63fe490 (diff) | |
download | mongo-acfb8d8abda2587c6015b354684614a5a1adbbd1.tar.gz |
This version of FTS only works with index version 1
-rw-r--r-- | src/mongo/db/fts/fts_spec.cpp | 4 |
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 ); } |