summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/type_collection.h
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2017-03-07 16:26:17 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2017-03-09 11:47:04 -0500
commitb299533d8357a6fbccc7a14f82064c5beef04da6 (patch)
tree5bad23939d0ae2796d49871e677e5277cc7b635f /src/mongo/s/catalog/type_collection.h
parente9b27a1967732235d5ab6e2b28de0dc333d82a2d (diff)
downloadmongo-b299533d8357a6fbccc7a14f82064c5beef04da6.tar.gz
SERVER-28120 persist config.collections entries on shards for the collections that the shards possess
Diffstat (limited to 'src/mongo/s/catalog/type_collection.h')
-rw-r--r--src/mongo/s/catalog/type_collection.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mongo/s/catalog/type_collection.h b/src/mongo/s/catalog/type_collection.h
index 06c51be3b55..b46937266e1 100644
--- a/src/mongo/s/catalog/type_collection.h
+++ b/src/mongo/s/catalog/type_collection.h
@@ -43,9 +43,26 @@ class StatusWith;
/**
- * This class represents the layout and contents of documents contained in the
+ * This class represents the layout and contents of documents contained in the config server's
* config.collections collection. All manipulation of documents coming from that collection
* should be done with this class.
+ *
+ * Expected config server config.collections collection format:
+ * {
+ * "_id" : "foo.bar",
+ * "lastmodEpoch" : ObjectId("58b6fd76132358839e409e47"),
+ * "lastmod" : ISODate("1970-02-19T17:02:47.296Z"),
+ * "dropped" : false,
+ * "key" : {
+ * "_id" : 1
+ * },
+ * "defaultCollation" : {
+ * "locale" : "fr_CA"
+ * },
+ * "unique" : false,
+ * "noBalance" : false
+ * }
+ *
*/
class CollectionType {
public: