summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/interval.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-01-27 18:01:26 -0500
committerHari Khalsa <hkhalsa@10gen.com>2014-01-29 13:18:47 -0500
commit3b3c25e571852893373ae2e2b361397b260687c9 (patch)
treee2350ef7605c1e5a6d33649d095d19a624803ea9 /src/mongo/db/query/interval.h
parent2bee3f018b8d4351f8261c405adcdff44c7f9a70 (diff)
downloadmongo-3b3c25e571852893373ae2e2b361397b260687c9.tar.gz
SERVER-12460 faster count for simple queries
Diffstat (limited to 'src/mongo/db/query/interval.h')
-rw-r--r--src/mongo/db/query/interval.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/interval.h b/src/mongo/db/query/interval.h
index e74cabcee35..1b8e381bc17 100644
--- a/src/mongo/db/query/interval.h
+++ b/src/mongo/db/query/interval.h
@@ -98,6 +98,9 @@ namespace mongo {
return (!startInclusive || !endInclusive) && 0 == start.woCompare(end, false);
}
+ /** Returns true if 'this' is the same interval as 'other' */
+ bool equals(const Interval& other) const;
+
/**
* Swap start and end points of interval.
*/