diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2013-04-11 16:22:55 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2013-04-12 16:40:38 -0400 |
commit | ef3d06fb6c5402d56a90ad60fd61c761021b92a7 (patch) | |
tree | 4097ad3c2fa71297977faddae8bc6c8028c3997e /src/mongo/db/keypattern.h | |
parent | 7797f459758a98bce90593e583f90c858a287a1c (diff) | |
download | mongo-ef3d06fb6c5402d56a90ad60fd61c761021b92a7.tar.gz |
migrate fts/haystack + add/del logic SERVER-8791 SERVER-9164 SERVER-9165
Diffstat (limited to 'src/mongo/db/keypattern.h')
-rw-r--r-- | src/mongo/db/keypattern.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/keypattern.h b/src/mongo/db/keypattern.h index 4c52dac2c9d..da206e10b72 100644 --- a/src/mongo/db/keypattern.h +++ b/src/mongo/db/keypattern.h @@ -81,6 +81,12 @@ namespace mongo { } /** + * Is the provided key pattern the index over the ID field? + * The always required ID index is always {_id: 1} or {_id: -1}. + */ + static bool isIdKeyPattern(const BSONObj& pattern); + + /** * Return the first string value in the provided object. For an index key pattern, * a field with a non-string value indicates a "special" (not straight Btree) index. */ |