summaryrefslogtreecommitdiff
path: root/src/mongo/db/indexkey.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-05-25 14:57:32 -0700
committerAaron <aaron@10gen.com>2012-05-25 14:57:32 -0700
commit57cbc35794c5d9a75a3b4a1523b653d8c39e9be8 (patch)
tree5ed0c02f4538e1f7f0af08608a88a6d733600502 /src/mongo/db/indexkey.h
parent640fbbe0f31a2909dbae09c394418bb76b06fd90 (diff)
downloadmongo-57cbc35794c5d9a75a3b4a1523b653d8c39e9be8.tar.gz
SERVER-3918 Add IndexSpec::isSparse() accessor.
Diffstat (limited to 'src/mongo/db/indexkey.h')
-rw-r--r--src/mongo/db/indexkey.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/indexkey.h b/src/mongo/db/indexkey.h
index 12cd755e8a0..7d458e790be 100644
--- a/src/mongo/db/indexkey.h
+++ b/src/mongo/db/indexkey.h
@@ -163,6 +163,8 @@ namespace mongo {
IndexSuitability suitability( const BSONObj& query , const BSONObj& order ) const ;
+ bool isSparse() const { return _sparse; }
+
protected:
int indexVersion() const;