diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2012-11-16 16:11:31 -0500 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2012-11-16 16:12:31 -0500 |
commit | e963c443d90f0909cba0ef5aa31fa0ce4d745d4a (patch) | |
tree | 8bff1bec80983c1cde9fb5fb09cebf4e0efc15cc /src | |
parent | 0c63694742fe47aaf4baf9ca632685f67e1cebec (diff) | |
download | mongo-e963c443d90f0909cba0ef5aa31fa0ce4d745d4a.tar.gz |
flip dedup on s2 searches to avoid dups
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/geo/s2cursor.h | 2 | ||||
-rw-r--r-- | src/mongo/db/geo/s2nearcursor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/geo/s2cursor.h b/src/mongo/db/geo/s2cursor.h index 6d6cf267009..f8a467e17f6 100644 --- a/src/mongo/db/geo/s2cursor.h +++ b/src/mongo/db/geo/s2cursor.h @@ -37,7 +37,7 @@ namespace mongo { virtual bool supportYields() { return true; } virtual bool supportGetMore() { return true; } virtual bool isMultiKey() const { return true; } - virtual bool autoDedup() const { return false; } + virtual bool autoDedup() const { return true; } virtual bool modifiedKeys() const { return true; } virtual bool getsetdup(DiskLoc loc) { return false; } virtual string toString() { return "S2Cursor"; } diff --git a/src/mongo/db/geo/s2nearcursor.h b/src/mongo/db/geo/s2nearcursor.h index 18a25740d1e..e1f6f493b41 100644 --- a/src/mongo/db/geo/s2nearcursor.h +++ b/src/mongo/db/geo/s2nearcursor.h @@ -36,7 +36,7 @@ namespace mongo { virtual bool supportYields() { return true; } virtual bool supportGetMore() { return true; } virtual bool isMultiKey() const { return true; } - virtual bool autoDedup() const { return false; } + virtual bool autoDedup() const { return true; } virtual bool modifiedKeys() const { return true; } virtual bool getsetdup(DiskLoc loc) { return false; } virtual string toString() { return "S2NearCursor"; } |