diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2013-11-13 23:29:54 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2013-11-13 23:30:02 -0500 |
commit | 423a65720edb43703cca9aef04592c709afbd9b7 (patch) | |
tree | b18ca3dbe82711e05e6d72cf89dd4633e63a275c /src/mongo/db/keypattern.h | |
parent | b88b6e6c6e783d10bf3f73f4778f45cbe848cff6 (diff) | |
download | mongo-423a65720edb43703cca9aef04592c709afbd9b7.tar.gz |
SERVER-11324: Allow unique index if prefixed by hashed shard key
Diffstat (limited to 'src/mongo/db/keypattern.h')
-rw-r--r-- | src/mongo/db/keypattern.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/keypattern.h b/src/mongo/db/keypattern.h index 7e79f7fbb08..b5ba777cecd 100644 --- a/src/mongo/db/keypattern.h +++ b/src/mongo/db/keypattern.h @@ -84,14 +84,6 @@ namespace mongo { */ BSONElement getField( const char* fieldname ) const { return _pattern[ fieldname ]; } - /* - * Returns true if the key described by this KeyPattern is a prefix of - * the (potentially) compound key described by 'other' - */ - bool isPrefixOf( const KeyPattern& other ) const { - return _pattern.isPrefixOf( other.toBSON() ); - } - /** * Is the provided key pattern the index over the ID field? * The always required ID index is always {_id: 1} or {_id: -1}. |