diff options
author | Aaron <aaron@10gen.com> | 2012-05-25 14:57:32 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2012-05-25 14:57:32 -0700 |
commit | 57cbc35794c5d9a75a3b4a1523b653d8c39e9be8 (patch) | |
tree | 5ed0c02f4538e1f7f0af08608a88a6d733600502 /src/mongo/db/indexkey.h | |
parent | 640fbbe0f31a2909dbae09c394418bb76b06fd90 (diff) | |
download | mongo-57cbc35794c5d9a75a3b4a1523b653d8c39e9be8.tar.gz |
SERVER-3918 Add IndexSpec::isSparse() accessor.
Diffstat (limited to 'src/mongo/db/indexkey.h')
-rw-r--r-- | src/mongo/db/indexkey.h | 2 |
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; |