diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-11-23 16:50:29 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2016-03-02 16:41:53 -0500 |
commit | cdd95deb1b5ebb8dbf9ec76a96ebcf511ba3a14e (patch) | |
tree | c071c528787e090fe8095d417272eea71a276e39 /src/mongo/db/fts | |
parent | 9405fa9e1e0d5f24cb0bc210969cb35de84ae8fc (diff) | |
download | mongo-cdd95deb1b5ebb8dbf9ec76a96ebcf511ba3a14e.tar.gz |
SERVER-21828 Murmurhash for bigendian
Make murmurhash output the same on big endian architectures as on little
endian.
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/fts_index_format_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/fts/fts_index_format_test.cpp b/src/mongo/db/fts/fts_index_format_test.cpp index 59ea9345fd4..8d19e975cab 100644 --- a/src/mongo/db/fts/fts_index_format_test.cpp +++ b/src/mongo/db/fts/fts_index_format_test.cpp @@ -209,7 +209,10 @@ TEST(FTSIndexFormat, LongWordTextIndexVersion2) { string longWordCat = longPrefix + "cat"; // "aaa...aaasat" string longWordSat = longPrefix + "sat"; - string text = mongoutils::str::stream() << longWordCat << " " << longWordSat; + // "aaa...aaamongodbfts" + string longWordMongoDBFts = longPrefix + "mongodbfts"; + string text = mongoutils::str::stream() << longWordCat << " " << longWordSat << " " + << longWordMongoDBFts; FTSIndexFormat::getKeys(spec, BSON("data" << text), &keys); // Hard-coded expected computed keys for future-proofing. @@ -218,6 +221,8 @@ TEST(FTSIndexFormat, LongWordTextIndexVersion2) { expectedKeys.insert("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab8e78455d827ebb87cbe87f392bf45f6"); // sat expectedKeys.insert("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaf2d6f58bb3b81b97e611ae7ccac6dea7"); + // mongodbfts + expectedKeys.insert("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae1d6b34f5d9c92acecd8cce32f747b27"); assertEqualsIndexKeys(expectedKeys, keys); } |