summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_metadata.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-01-04 18:03:26 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-01-13 09:01:24 -0500
commitf164097cb678f763289ee870e854f89749dbbba8 (patch)
tree62a03c13f2f76548c8738e057a2aaae4abd5c1be /src/mongo/db/s/collection_metadata.h
parent4e4261cd0efc5fc9e0b2b9f9b787e7b6bc12295f (diff)
downloadmongo-f164097cb678f763289ee870e854f89749dbbba8.tar.gz
SERVER-32526 Increase the ChunkManager unit-test coverage
Also tightens up some of the checks in the JS tests and cleans up the ChunkManager/CollectionMetadata code in preparation for making it use KeyString.
Diffstat (limited to 'src/mongo/db/s/collection_metadata.h')
-rw-r--r--src/mongo/db/s/collection_metadata.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h
index fad4cfeae3d..e606058eae5 100644
--- a/src/mongo/db/s/collection_metadata.h
+++ b/src/mongo/db/s/collection_metadata.h
@@ -64,9 +64,8 @@ public:
}
/**
- * Returns true if the document key 'key' belongs to this chunkset. Recall that documents of
- * an in-flight chunk migration may be present and should not be considered part of the
- * collection / chunkset yet. Key must be the full shard key.
+ * Returns true if the document with the given key belongs to this chunkset. If the key is empty
+ * returns false. If key is not a valid shard key, the behaviour is undefined.
*/
bool keyBelongsToMe(const BSONObj& key) const;