summaryrefslogtreecommitdiff
path: root/src/mongo/db/keypattern.h
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2013-11-13 23:29:54 -0500
committerScott Hernandez <scotthernandez@gmail.com>2013-11-13 23:30:02 -0500
commit423a65720edb43703cca9aef04592c709afbd9b7 (patch)
treeb18ca3dbe82711e05e6d72cf89dd4633e63a275c /src/mongo/db/keypattern.h
parentb88b6e6c6e783d10bf3f73f4778f45cbe848cff6 (diff)
downloadmongo-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.h8
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}.